Total Complexity | 2 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 60% |
Changes | 0 |
1 | <?php |
||
19 | class ScoreShippingRateInputDraft extends ShippingRateInputDraft |
||
20 | { |
||
21 | 1 | public function fieldDefinitions() |
|
22 | { |
||
23 | return [ |
||
24 | 1 | 'type' => [static::TYPE => 'string'], |
|
25 | 1 | 'score' => [static::TYPE => 'int'], |
|
26 | ]; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param int $score |
||
31 | * @param Context|callable $context |
||
32 | * @return ScoreShippingRateInputDraft |
||
33 | */ |
||
34 | public static function ofScore($score, $context = null) |
||
37 | } |
||
38 | } |
||
39 |