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