| Total Complexity | 5 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 11 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 5 | trait WarehousesFilter |
||
| 6 | { |
||
| 7 | protected $typeOfWarehouseRef; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Наличие парковки для велосипедов. |
||
| 11 | * |
||
| 12 | * @return $this |
||
| 13 | */ |
||
| 14 | public function filterBicycleParking(): self |
||
| 15 | { |
||
| 16 | $this->methodProperties['BicycleParking'] = 1; |
||
| 17 | |||
| 18 | return $this; |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Наличие PostFinance. |
||
| 23 | * |
||
| 24 | * @return $this |
||
| 25 | */ |
||
| 26 | public function filterPostFinance(): self |
||
| 27 | { |
||
| 28 | $this->methodProperties['PostFinance'] = 1; |
||
| 29 | |||
| 30 | return $this; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Фильтр по типу отделения. |
||
| 35 | * |
||
| 36 | * @param string $typeOfWarehouseRef Ref типа отделения |
||
| 37 | * @return $this |
||
| 38 | */ |
||
| 39 | public function setTypeOfWarehouseRef(string $typeOfWarehouseRef): self |
||
| 40 | { |
||
| 41 | $this->typeOfWarehouseRef = $typeOfWarehouseRef; |
||
| 42 | |||
| 43 | return $this; |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return void |
||
| 48 | */ |
||
| 49 | public function getTypeOfWarehouseRef(): void |
||
| 53 | } |
||
| 54 | } |
||
| 55 | } |
||
| 56 |