| @@ 61-65 (lines=5) @@ | ||
| 58 | */ |
|
| 59 | public function __get($name) |
|
| 60 | { |
|
| 61 | if (array_key_exists($name, $this->__getLazyProperties())) { |
|
| 62 | $this->__initializer__ && $this->__initializer__->__invoke($this, '__get', [$name]); |
|
| 63 | ||
| 64 | return $this->$name; |
|
| 65 | } |
|
| 66 | ||
| 67 | trigger_error(sprintf('Undefined property: %s::$%s', __CLASS__, $name), E_USER_NOTICE); |
|
| 68 | } |
|
| @@ 77-83 (lines=7) @@ | ||
| 74 | */ |
|
| 75 | public function __set($name, $value) |
|
| 76 | { |
|
| 77 | if (array_key_exists($name, $this->__getLazyProperties())) { |
|
| 78 | $this->__initializer__ && $this->__initializer__->__invoke($this, '__set', [$name, $value]); |
|
| 79 | ||
| 80 | $this->$name = $value; |
|
| 81 | ||
| 82 | return; |
|
| 83 | } |
|
| 84 | ||
| 85 | $this->$name = $value; |
|
| 86 | } |
|
| @@ 95-99 (lines=5) @@ | ||
| 92 | */ |
|
| 93 | public function __isset($name) |
|
| 94 | { |
|
| 95 | if (array_key_exists($name, $this->__getLazyProperties())) { |
|
| 96 | $this->__initializer__ && $this->__initializer__->__invoke($this, '__isset', [$name]); |
|
| 97 | ||
| 98 | return isset($this->$name); |
|
| 99 | } |
|
| 100 | ||
| 101 | return false; |
|
| 102 | } |
|