1 | <?php |
||
31 | class Mother implements \ArrayAccess |
||
32 | { |
||
33 | /** |
||
34 | * containts the closures |
||
35 | * @var array |
||
36 | */ |
||
37 | private $_aClosures = array(); |
||
38 | |||
39 | /** |
||
40 | * containts data type |
||
41 | * @var array |
||
42 | */ |
||
43 | private $_aDataType = array(); |
||
44 | |||
45 | /** |
||
46 | * containts datas |
||
47 | * @var array |
||
48 | */ |
||
49 | protected $_aData = array(); |
||
50 | |||
51 | /** |
||
52 | * get a property |
||
53 | * |
||
54 | * @access public |
||
55 | * @param unknown_type $mKey |
||
56 | * @return void |
||
57 | */ |
||
58 | public function __get($mKey) |
||
76 | |||
77 | /** |
||
78 | * set a property |
||
79 | * |
||
80 | * @access public |
||
81 | * @param unknown_type $mKey |
||
82 | * @return void |
||
83 | */ |
||
84 | public function __set($mKey, $mValue) |
||
96 | |||
97 | /** |
||
98 | * unset a property |
||
99 | * |
||
100 | * @access public |
||
101 | * @param mixed $mKey |
||
102 | * @return void |
||
103 | */ |
||
104 | public function __unset($mKey) |
||
112 | |||
113 | /** |
||
114 | * test existance of property |
||
115 | * |
||
116 | * @access public |
||
117 | * @param mixed $mKey |
||
118 | * @return boolean |
||
119 | */ |
||
120 | public function __isset($mKey) |
||
124 | |||
125 | /** |
||
126 | * if offsetExists of \ArrayAccess |
||
127 | * |
||
128 | * @access public |
||
129 | * @param mixed $mOffset |
||
130 | * @return boolean |
||
131 | */ |
||
132 | public function offsetExists($mOffset) |
||
136 | |||
137 | /** |
||
138 | * if offsetGet of \ArrayAccess |
||
139 | * |
||
140 | * @access public |
||
141 | * @param mixed $mOffset |
||
142 | * @return mixed |
||
143 | */ |
||
144 | public function offsetGet($mOffset) |
||
148 | |||
149 | /** |
||
150 | * if offsetSet of \ArrayAccess |
||
151 | * |
||
152 | * @access public |
||
153 | * @param mixed $mOffset |
||
154 | * @param mixed $mValue |
||
155 | * @return void |
||
156 | */ |
||
157 | public function offsetSet($mOffset, $mValue) |
||
161 | |||
162 | /** |
||
163 | * if offsetUnset of \ArrayAccess |
||
164 | * |
||
165 | * @access public |
||
166 | * @param mixed $mOffset |
||
167 | * @return void |
||
168 | */ |
||
169 | public function offsetUnset($mOffset) |
||
173 | } |
||
174 |