1 | <?php |
||
8 | trait AppendageMaintainance |
||
9 | { |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | protected $arrInheritableAppendages = []; |
||
14 | |||
15 | /** |
||
16 | * List of appendages that are explicitly defined on this object. They |
||
17 | * are not overwritten from appendages from object that are higher |
||
18 | * in the hierarchy. |
||
19 | * |
||
20 | * @var array |
||
21 | */ |
||
22 | protected $arrIndividualAppendages = []; |
||
23 | |||
24 | /** |
||
25 | * |
||
26 | * @param string $key |
||
27 | * @param mixed $appendage |
||
28 | */ |
||
29 | public function addInheritableAppendage($key, $appendage) |
||
34 | |||
35 | /** |
||
36 | * |
||
37 | * @param string $key |
||
38 | * @param mixed $appendage |
||
39 | */ |
||
40 | public function leaveInheritableAppendage($key, $appendage) |
||
46 | |||
47 | /** |
||
48 | * |
||
49 | * @param string $key |
||
50 | * @param mixed $appendage |
||
51 | */ |
||
52 | private function storeInheritableAppendage($key, $appendage) |
||
64 | |||
65 | /** |
||
66 | * |
||
67 | * @param string $key |
||
68 | * @return null|mixed |
||
69 | */ |
||
70 | public function getInheritableAppendage($key) |
||
77 | |||
78 | /** |
||
79 | * |
||
80 | * @param string $key |
||
81 | * @return boolean |
||
82 | */ |
||
83 | public function existsInheritableAppendage($key) |
||
87 | |||
88 | /** |
||
89 | * |
||
90 | * @param string $key |
||
91 | * @return boolean |
||
92 | */ |
||
93 | public function appendageIsIndividual($key) |
||
97 | |||
98 | /** |
||
99 | * @return array All appendages with keys |
||
100 | */ |
||
101 | public function getInheritableAppendages() |
||
105 | } |
||
106 |