Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
20 | class OrderRemoveDeliveryAction extends AbstractAction |
||
21 | { |
||
22 | 2 | public function fieldDefinitions() |
|
23 | { |
||
24 | return [ |
||
25 | 2 | 'action' => [static::TYPE => 'string'], |
|
26 | 2 | 'deliveryId' => [static::TYPE => 'string'], |
|
27 | ]; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param string $deliveryId |
||
32 | * @param Context|callable $context |
||
33 | * @return OrderRemoveDeliveryAction |
||
34 | */ |
||
35 | 1 | public static function ofDelivery($deliveryId, $context = null) |
|
38 | } |
||
39 | |||
40 | /** |
||
41 | * @param array $data |
||
42 | * @param Context|callable $context |
||
43 | */ |
||
44 | 2 | public function __construct(array $data = [], $context = null) |
|
50 |