| Total Complexity | 4 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 16 | class PolygonsRequest extends AbstractRequest implements RequestInterface, MustRawJson |
||
| 17 | { |
||
| 18 | public const RESPONSE_CLASS = RawDataResponse::class; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Тип доставки |
||
| 22 | * |
||
| 23 | * @JMS\Type("int") |
||
| 24 | * @JMS\SerializedName("service") |
||
| 25 | */ |
||
| 26 | private int $service; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Зона доставки |
||
| 30 | * |
||
| 31 | * @JMS\Type("int") |
||
| 32 | * @JMS\SerializedName("zone") |
||
| 33 | */ |
||
| 34 | private int $zone; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Код филиала |
||
| 38 | * |
||
| 39 | * @JMS\Type("int") |
||
| 40 | * @JMS\SerializedName("filial") |
||
| 41 | */ |
||
| 42 | private int $filial; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param int $service |
||
| 46 | * @param int $zone |
||
| 47 | * @param int $filial |
||
| 48 | */ |
||
| 49 | 2 | public function __construct(int $service, int $zone, int $filial) |
|
| 50 | { |
||
| 51 | 2 | $this->service = $service; |
|
| 52 | 2 | $this->zone = $zone; |
|
| 53 | 2 | $this->filial = $filial; |
|
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return int |
||
| 58 | */ |
||
| 59 | 1 | public function getService(): int |
|
| 60 | { |
||
| 61 | 1 | return $this->service; |
|
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return int |
||
| 66 | */ |
||
| 67 | 1 | public function getZone(): int |
|
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @return int |
||
| 74 | */ |
||
| 75 | 1 | public function getFilialCode(): int |
|
| 80 |