1 | <?php |
||
5 | trait MagicMapTrait |
||
6 | { |
||
7 | protected $__arrayOfData = array(); |
||
8 | |||
9 | /** |
||
10 | * @param string $name |
||
11 | * @param mixed $column |
||
12 | * @return $this |
||
13 | */ |
||
14 | public function __set($name, $column) |
||
19 | |||
20 | public function &__get($name) |
||
29 | |||
30 | public function offsetExists($offset) |
||
34 | |||
35 | public function &offsetGet($offset) |
||
44 | |||
45 | public function offsetSet($offset, $value) |
||
49 | |||
50 | public function offsetUnset($offset) |
||
54 | |||
55 | public function &toArray() |
||
59 | |||
60 | public function jsonSerialize() |
||
64 | |||
65 | |||
66 | /** @var \ArrayIterator */ |
||
67 | private $iterator; |
||
68 | /** |
||
69 | * Return the current element |
||
70 | * @link http://php.net/manual/en/iterator.current.php |
||
71 | * @return mixed Can return any type. |
||
72 | * @since 5.0.0 |
||
73 | */ |
||
74 | public function current() |
||
78 | |||
79 | /** |
||
80 | * Move forward to next element |
||
81 | * @link http://php.net/manual/en/iterator.next.php |
||
82 | * @return void Any returned value is ignored. |
||
83 | * @since 5.0.0 |
||
84 | */ |
||
85 | public function next() |
||
89 | |||
90 | /** |
||
91 | * Return the key of the current element |
||
92 | * @link http://php.net/manual/en/iterator.key.php |
||
93 | * @return mixed scalar on success, or null on failure. |
||
94 | * @since 5.0.0 |
||
95 | */ |
||
96 | public function key() |
||
100 | |||
101 | /** |
||
102 | * Checks if current position is valid |
||
103 | * @link http://php.net/manual/en/iterator.valid.php |
||
104 | * @return boolean The return value will be casted to boolean and then evaluated. |
||
105 | * Returns true on success or false on failure. |
||
106 | * @since 5.0.0 |
||
107 | */ |
||
108 | public function valid() |
||
112 | |||
113 | /** |
||
114 | * Rewind the Iterator to the first element |
||
115 | * @link http://php.net/manual/en/iterator.rewind.php |
||
116 | * @return void Any returned value is ignored. |
||
117 | * @since 5.0.0 |
||
118 | */ |
||
119 | public function rewind() |
||
123 | |||
124 | |||
125 | public function __isset($name) |
||
133 | } |