Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 71.43% |
Changes | 0 |
1 | <?php |
||
20 | class StoreDraft extends JsonObject |
||
21 | { |
||
22 | 20 | public function fieldDefinitions() |
|
27 | ]; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param string $key |
||
32 | * @param Context|callable $context |
||
33 | * @return StoreDraft |
||
34 | */ |
||
35 | public static function ofKey($key, Context $context) |
||
36 | { |
||
37 | return static::of($context)->setKey($key); |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @param string $key |
||
42 | * @param LocalizedString $name |
||
43 | * @param Context|null $context |
||
44 | * @return StoreDraft |
||
45 | */ |
||
46 | 18 | public static function ofKeyAndName($key, LocalizedString $name, $context = null) |
|
49 | } |
||
50 | } |
||
51 |