1 | <?php |
||
5 | trait MagicMapTrait |
||
6 | { |
||
7 | protected $__arrayOfData = array(); |
||
8 | |||
9 | public function __set($name, $column) |
||
14 | |||
15 | public function &__get($name) |
||
24 | |||
25 | public function offsetExists($offset) |
||
29 | |||
30 | public function &offsetGet($offset) |
||
39 | |||
40 | public function offsetSet($offset, $value) |
||
44 | |||
45 | public function offsetUnset($offset) |
||
49 | |||
50 | public function &toArray() |
||
54 | |||
55 | public function jsonSerialize() |
||
59 | |||
60 | |||
61 | /** @var \ArrayIterator */ |
||
62 | private $iterator; |
||
63 | /** |
||
64 | * Return the current element |
||
65 | * @link http://php.net/manual/en/iterator.current.php |
||
66 | * @return mixed Can return any type. |
||
67 | * @since 5.0.0 |
||
68 | */ |
||
69 | public function current() |
||
73 | |||
74 | /** |
||
75 | * Move forward to next element |
||
76 | * @link http://php.net/manual/en/iterator.next.php |
||
77 | * @return void Any returned value is ignored. |
||
78 | * @since 5.0.0 |
||
79 | */ |
||
80 | public function next() |
||
84 | |||
85 | /** |
||
86 | * Return the key of the current element |
||
87 | * @link http://php.net/manual/en/iterator.key.php |
||
88 | * @return mixed scalar on success, or null on failure. |
||
89 | * @since 5.0.0 |
||
90 | */ |
||
91 | public function key() |
||
95 | |||
96 | /** |
||
97 | * Checks if current position is valid |
||
98 | * @link http://php.net/manual/en/iterator.valid.php |
||
99 | * @return boolean The return value will be casted to boolean and then evaluated. |
||
100 | * Returns true on success or false on failure. |
||
101 | * @since 5.0.0 |
||
102 | */ |
||
103 | public function valid() |
||
107 | |||
108 | /** |
||
109 | * Rewind the Iterator to the first element |
||
110 | * @link http://php.net/manual/en/iterator.rewind.php |
||
111 | * @return void Any returned value is ignored. |
||
112 | * @since 5.0.0 |
||
113 | */ |
||
114 | public function rewind() |
||
118 | |||
119 | |||
120 | public function __isset($name) |
||
128 | } |