| @@ 139-152 (lines=14) @@ | ||
| 136 | * |
|
| 137 | * @return null |
|
| 138 | */ |
|
| 139 | public function __get($property) |
|
| 140 | { |
|
| 141 | $getter = "get" . ucfirst($property); |
|
| 142 | if (method_exists($this, $getter)) { |
|
| 143 | return $this->$getter(); |
|
| 144 | } |
|
| 145 | ||
| 146 | if (property_exists($this, $property)) { |
|
| 147 | return $this->$property; |
|
| 148 | } |
|
| 149 | ||
| 150 | return $this->get($property); |
|
| 151 | ||
| 152 | } |
|
| 153 | ||
| 154 | /** |
|
| 155 | * @param $property |
|
| @@ 282-294 (lines=13) @@ | ||
| 279 | return $this; |
|
| 280 | } |
|
| 281 | ||
| 282 | public function __get($property) |
|
| 283 | { |
|
| 284 | $getter = "get" . ucfirst($property); |
|
| 285 | if (method_exists($this, $getter)) { |
|
| 286 | return $this->$getter(); |
|
| 287 | } |
|
| 288 | ||
| 289 | if (property_exists($this, $property)) { |
|
| 290 | return $this->$property; |
|
| 291 | } |
|
| 292 | ||
| 293 | return $this->get($property); |
|
| 294 | } |
|
| 295 | ||
| 296 | public function __set($property, $value) |
|
| 297 | { |
|