1 | <?php |
||
15 | class PropertySetConfig |
||
16 | { |
||
17 | /** |
||
18 | * @var PropertySetConfig |
||
19 | */ |
||
20 | protected static $instance; |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | protected $propertySetArgs; |
||
26 | |||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | protected $propertySets; |
||
31 | |||
32 | /** |
||
33 | * |
||
34 | * @throws \OldTown\PropertySet\Exception\InvalidArgumentException |
||
35 | */ |
||
36 | protected function __construct() |
||
40 | |||
41 | /** |
||
42 | * |
||
43 | * @return PropertySetConfig |
||
44 | */ |
||
45 | public static function getConfig() |
||
49 | |||
50 | /** |
||
51 | * |
||
52 | * @return PropertySetConfig |
||
53 | */ |
||
54 | public static function getInstance() |
||
62 | |||
63 | /** |
||
64 | * |
||
65 | * @return $this |
||
66 | * |
||
67 | * @throws \OldTown\PropertySet\Exception\InvalidArgumentException |
||
68 | */ |
||
69 | protected function init() |
||
107 | |||
108 | /** |
||
109 | * @todo Реализовать возможность добавления пользователем конфигов |
||
110 | * |
||
111 | * @return array |
||
112 | */ |
||
113 | protected function getUserConfig() |
||
117 | |||
118 | /** |
||
119 | * @param $name |
||
120 | * |
||
121 | * @return array|null |
||
122 | */ |
||
123 | public function getArgs($name) |
||
131 | |||
132 | /** |
||
133 | * @param $name |
||
134 | * |
||
135 | * @return string|null |
||
136 | */ |
||
137 | public function getClassName($name) |
||
146 | } |
||
147 |