| Total Complexity | 5 |
| Total Lines | 71 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class Operation |
||
| 17 | { |
||
| 18 | /** @var int */ |
||
| 19 | private $OperTypeID; |
||
| 20 | |||
| 21 | /** @var int */ |
||
| 22 | private $OperCtgID; |
||
| 23 | |||
| 24 | /** @var string */ |
||
| 25 | private $OperName; |
||
| 26 | |||
| 27 | /** @var string */ |
||
| 28 | private $DateOper; |
||
| 29 | |||
| 30 | /** @var string */ |
||
| 31 | private $IndexOper; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Код операции (OperTypeID). |
||
| 35 | * |
||
| 36 | * @link https://tracking.pochta.ru/support/dictionaries/operation_codes |
||
| 37 | * |
||
| 38 | * @return int |
||
| 39 | */ |
||
| 40 | 1 | public function getOperationId(): int |
|
| 41 | { |
||
| 42 | 1 | return $this->OperTypeID; |
|
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Код атрибута (OperCtgID). |
||
| 47 | * |
||
| 48 | * @link https://tracking.pochta.ru/support/dictionaries/operation_codes |
||
| 49 | * |
||
| 50 | * @return int |
||
| 51 | */ |
||
| 52 | 1 | public function getAttributeId(): int |
|
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Название операции (OperName). |
||
| 59 | * |
||
| 60 | * @link https://tracking.pochta.ru/support/dictionaries/operation_codes |
||
| 61 | * |
||
| 62 | * @return string |
||
| 63 | */ |
||
| 64 | 1 | public function getOperationName(): string |
|
| 65 | { |
||
| 66 | 1 | return $this->OperName; |
|
| 67 | } |
||
| 68 | |||
| 69 | /** |
||
| 70 | * Время (локальное) проведения операции (DateOper). |
||
| 71 | * |
||
| 72 | * @return \DateTimeImmutable |
||
| 73 | */ |
||
| 74 | 1 | public function getPerformedAt(): \DateTimeImmutable |
|
| 77 | } |
||
| 78 | |||
| 79 | /** |
||
| 80 | * Почтовый индекс места проведения операции (IndexOper). |
||
| 81 | * |
||
| 82 | * @return string |
||
| 83 | */ |
||
| 84 | 1 | public function getPostalCode(): string |
|
| 89 |