@@ -47,23 +47,23 @@ |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | # ArrayAccess |
50 | - public function offsetGet($offset) { return $this->requireOffset($offset); } |
|
51 | - public function offsetExists($offset) { return array_key_exists($offset, $this->values); } |
|
52 | - public function offsetSet($offset, $val) { $this->values[$offset] = $val; } |
|
53 | - public function offsetUnset($offset) { unset($this->values[$offset]); } |
|
50 | + public function offsetGet($offset) { return $this->requireOffset($offset); } |
|
51 | + public function offsetExists($offset) { return array_key_exists($offset, $this->values); } |
|
52 | + public function offsetSet($offset, $val) { $this->values[$offset] = $val; } |
|
53 | + public function offsetUnset($offset) { unset($this->values[$offset]); } |
|
54 | 54 | |
55 | 55 | # Iterator |
56 | - public function rewind() { return reset($this->values); } |
|
57 | - public function key() { return key($this->values); } |
|
58 | - public function current() { return current($this->values); } |
|
59 | - public function next() { return next($this->values); } |
|
60 | - public function valid() { return key($this->values) !== null; } |
|
56 | + public function rewind() { return reset($this->values); } |
|
57 | + public function key() { return key($this->values); } |
|
58 | + public function current() { return current($this->values); } |
|
59 | + public function next() { return next($this->values); } |
|
60 | + public function valid() { return key($this->values) !== null; } |
|
61 | 61 | |
62 | 62 | # Magic Property Access |
63 | - public function __set($offset, $value) { $this->offsetSet($offset, $value); } |
|
64 | - public function __unset($offset) { $this->offsetUnset($offset); } |
|
65 | - public function __get($offset) { return $this->offsetGet($offset); } |
|
66 | - public function __isset($offset) { return $this->offsetExists($offset); } |
|
63 | + public function __set($offset, $value) { $this->offsetSet($offset, $value); } |
|
64 | + public function __unset($offset) { $this->offsetUnset($offset); } |
|
65 | + public function __get($offset) { return $this->offsetGet($offset); } |
|
66 | + public function __isset($offset) { return $this->offsetExists($offset); } |
|
67 | 67 | |
68 | 68 | protected function requireOffset($offset) { |
69 | 69 | if (!$this->offsetExists($offset)) |