Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 50% |
Changes | 0 |
1 | <?php |
||
24 | class StoreReference extends Reference |
||
25 | { |
||
26 | const TYPE_STORE = 'store'; |
||
27 | const TYPE_CLASS = Store::class; |
||
28 | |||
29 | /** |
||
30 | * @param string $id |
||
31 | * @param Context|callable $context |
||
32 | * @return StoreReference |
||
33 | */ |
||
34 | public static function ofId($id, $context = null) |
||
35 | { |
||
36 | return static::ofTypeAndId(static::TYPE_STORE, $id, $context); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param string $key |
||
41 | * @param Context|callable $context |
||
42 | * @return StoreReference |
||
43 | */ |
||
44 | 9 | public static function ofKey($key, $context = null) |
|
47 | } |
||
48 | } |
||
49 |