Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 0 |
1 | <?php |
||
22 | class ClassificationShippingRateInput extends ShippingRateInput |
||
23 | { |
||
24 | const INPUT_TYPE = 'Classification'; |
||
25 | |||
26 | 1 | public function fieldDefinitions() |
|
27 | { |
||
28 | return [ |
||
29 | 1 | 'type' => [static::TYPE => 'string'], |
|
30 | 1 | 'key' => [static::TYPE => 'string'], |
|
31 | 1 | 'label' => [static::TYPE => LocalizedString::class] |
|
32 | ]; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param $key |
||
37 | * @param $label |
||
38 | * @param Context|callable $context |
||
39 | * @return ClassificationShippingRateInput |
||
40 | */ |
||
41 | public static function ofKeyAndLabel($key, $label, $context = null) |
||
44 | } |
||
45 | } |
||
46 |