| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | class CancelShipmentResponse |
||
| 30 | { |
||
| 31 | /** |
||
| 32 | * @Serializer\Type("VasilDakov\Speedy\Error") |
||
| 33 | */ |
||
| 34 | private ?Error $error = null; |
||
| 35 | |||
| 36 | 2 | public function __construct(Error $error = null) |
|
| 37 | { |
||
| 38 | 2 | $this->error = $error; |
|
| 39 | } |
||
| 40 | |||
| 41 | 1 | public function setError(?Error $error): void |
|
| 44 | } |
||
| 45 | |||
| 46 | 1 | public function getError(): ?Error |
|
| 51 |