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