1 | <?php |
||
10 | class RegionRepository |
||
11 | { |
||
12 | /** |
||
13 | * @var RegionCollection |
||
14 | */ |
||
15 | private static $collection; |
||
16 | |||
17 | /** |
||
18 | * @var RegionEntity[] |
||
19 | */ |
||
20 | private static $items = []; |
||
21 | |||
22 | /** |
||
23 | * @var RegionMapper |
||
24 | */ |
||
25 | private static $mapper; |
||
26 | |||
27 | /** |
||
28 | * @var RegionLoader |
||
29 | */ |
||
30 | private static $loader; |
||
31 | |||
32 | /** |
||
33 | * @return RegionCollection |
||
34 | */ |
||
35 | 1 | public static function findAll() |
|
43 | |||
44 | /** |
||
45 | * @param string $code |
||
46 | * |
||
47 | * @return null|RegionEntity |
||
48 | */ |
||
49 | 1 | public static function findByCode($code) |
|
58 | |||
59 | /** |
||
60 | * @return RegionLoader |
||
61 | */ |
||
62 | 2 | private static function getLoader() |
|
70 | |||
71 | /** |
||
72 | * @return RegionMapper |
||
73 | */ |
||
74 | 2 | private static function getMapper() |
|
82 | } |
||
83 |