header->interfaceId = InterfaceID::SIF10_01->value; } public function getPath() : string { return ""; } public static function create(Request $request) : self { $result = new self(); $result->header = SIFCommonHeader::createFromRequest($request); $result->customerCode = $request[self::COL_NAME_BODY][self::COL_NAME_CUSTOMER_CODE]; $result->parkingManagementCode = $request[self::COL_NAME_BODY][self::COL_NAME_PARKING_MANAGEMENT_CODE]; return $result; } public static function validateLayout(Request $request) : void { SIFCommonHeader::validateLayout($request); $request->validate([ self::COL_NAME_BODY.".".self::COL_NAME_CUSTOMER_CODE => 'required|string', self::COL_NAME_BODY.".".self::COL_NAME_PARKING_MANAGEMENT_CODE => 'required|string', ]); } protected function getBodyArray() : array { $body = []; $body[self::COL_NAME_CUSTOMER_CODE] = $this->customerCode; $body[self::COL_NAME_PARKING_MANAGEMENT_CODE] = $this->parkingManagementCode; return $body; } }