1 | <?php |
||
22 | abstract class AbstractConfiguration |
||
23 | { |
||
24 | use MagicMethodsTrait { |
||
25 | handlePropertyMagicMethod as handlePropertyMagicMethodInternal; |
||
26 | } |
||
27 | use ParentsTrait { |
||
28 | attachParent as private attachParentInternal; |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param string $path |
||
33 | * @return string |
||
34 | */ |
||
35 | protected function getAbsolutePath($path) |
||
39 | |||
40 | /** |
||
41 | * This method is used by setter methods, and other methods which goal is to |
||
42 | * modify a property value. |
||
43 | * |
||
44 | * It checks that the definition is not frozen, and if it is actually frozen |
||
45 | * an exception is thrown. |
||
46 | * |
||
47 | * @throws PropertyNotAccessibleException |
||
48 | */ |
||
49 | protected function checkConfigurationFreezeState() |
||
57 | |||
58 | /** |
||
59 | * @return bool |
||
60 | */ |
||
61 | protected function isConfigurationFrozen() |
||
66 | |||
67 | /** |
||
68 | * @return ConfigurationState |
||
69 | */ |
||
70 | protected function getState() |
||
78 | |||
79 | /** |
||
80 | * @param object $parent |
||
81 | * @param bool $direct |
||
82 | */ |
||
83 | public function attachParent($parent, $direct = true) |
||
88 | |||
89 | /** |
||
90 | * Overrides the magic methods handling from the Configuration Object API: a |
||
91 | * magic setter method must be accessible only for this API, otherwise an |
||
92 | * exception must be thrown. |
||
93 | * |
||
94 | * @param string $property |
||
95 | * @param string $type |
||
96 | * @param array $arguments |
||
97 | * @return mixed |
||
98 | * @throws PropertyNotAccessibleException |
||
99 | */ |
||
100 | protected function handlePropertyMagicMethod($property, $type, array $arguments) |
||
111 | } |
||
112 |