1 | <?php |
||
10 | trait ArrayAccessTrait { |
||
11 | /** |
||
12 | * @param string $sOffset |
||
13 | * @param mixed $mValue |
||
14 | * @return mixed |
||
15 | */ |
||
16 | public abstract function __set($sOffset, $mValue); |
||
17 | |||
18 | /** |
||
19 | * @param string $sOffset |
||
20 | * @return mixed |
||
21 | */ |
||
22 | public abstract function __get($sOffset); |
||
23 | |||
24 | /** |
||
25 | * @return array |
||
26 | */ |
||
27 | private function getPropertyNames() { |
||
36 | |||
37 | /** |
||
38 | * ArrayAccess interface |
||
39 | * @param mixed $sOffset |
||
40 | * @param mixed $mValue |
||
41 | * @throws |
||
42 | */ |
||
43 | public function offsetSet($sOffset, $mValue) |
||
47 | |||
48 | /** |
||
49 | * @param string $sOffset |
||
50 | * @return bool |
||
51 | */ |
||
52 | public function offsetExists($sOffset) |
||
56 | |||
57 | /** |
||
58 | * @param string $sOffset |
||
59 | */ |
||
60 | public function offsetUnset($sOffset) |
||
67 | |||
68 | /** |
||
69 | * @param string $sOffset |
||
70 | * @return mixed |
||
71 | */ |
||
72 | public function offsetGet($sOffset) |
||
76 | |||
77 | } |
||
78 |