| Total Complexity | 2 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class ParcelShopSearchRequest extends Request |
||
| 8 | { |
||
| 9 | private $fetchGsPUDOpoint; |
||
| 10 | private $countryCode; |
||
| 11 | private $postCode; |
||
| 12 | private $street; |
||
| 13 | private $city; |
||
| 14 | private $id; |
||
| 15 | private $company; |
||
| 16 | private $retrieveOpeningHours; |
||
| 17 | |||
| 18 | public function __construct( |
||
| 19 | Authentication $authentication, |
||
| 20 | bool $fetchGsPUDOpoint, |
||
| 21 | string $countryCode, |
||
| 22 | ?string $postCode = null, |
||
| 23 | ?string $street = null, |
||
| 24 | ?string $city = null, |
||
| 25 | ?string $id = null, |
||
| 26 | ?string $company = null, |
||
| 27 | bool $retrieveOpeningHours = false |
||
| 28 | ) { |
||
| 29 | parent::__construct($authentication); |
||
| 30 | |||
| 31 | $this->fetchGsPUDOpoint = $fetchGsPUDOpoint; |
||
| 32 | $this->countryCode = $countryCode; |
||
| 33 | $this->postCode = $postCode; |
||
| 34 | $this->street = $street; |
||
| 35 | $this->city = $city; |
||
| 36 | $this->id = $id; |
||
| 37 | $this->company = $company; |
||
| 38 | $this->retrieveOpeningHours = $retrieveOpeningHours; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function toArray(): array |
||
| 54 | ] |
||
| 55 | ); |
||
| 57 | } |