Auth\User: implement array access interface
This commit is contained in:
parent
df4cc74fea
commit
e2dca482b3
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue