diff --git a/src/Auth/User.php b/src/Auth/User.php index e39bd6c..95976fd 100644 --- a/src/Auth/User.php +++ b/src/Auth/User.php @@ -108,6 +108,14 @@ class User { } } + /** + * ArrayAccess interface + */ + public function offsetExists($offset) { return self :: __isset($offset); } + public function offsetGet($offset){ return self :: __get($offset); } + public function offsetSet($offset, $value) { self :: __set($offset, $value); } + public function offsetUnset($offset) { self :: __set($offset, null); } + /** * Check user password * @param string $password