| 1 | <?php |
||
| 9 | class Base extends BaseObject { |
||
| 10 | 1 | public function __call($sMethodName, $aVars) { |
|
| 11 | 1 | if (stristr($sMethodName, 'get')) { |
|
| 12 | // we have a getter we return $this |
||
| 13 | 1 | return new static(); |
|
| 14 | } elseif (!stristr($sMethodName, 'set')) { |
||
| 15 | return parent::__call($sMethodName, $aVars); |
||
| 16 | } |
||
| 17 | return null; |
||
| 18 | } |
||
| 19 | |||
| 20 | 1 | public function __get($sVarName) { |
|
| 23 | |||
| 24 | public function __toString() { |
||
| 27 | } |
||
| 28 |