| 1 | <?php | ||
| 12 | trait MethodPropertyAccess | ||
| 13 | { | ||
| 14 | |||
| 15 | /** | ||
| 16 | * Overload the __isset method to correctly handle isset request. | ||
| 17 | * | ||
| 18 | * @return bool | ||
| 19 | */ | ||
| 20 | public function __isset($key) | ||
| 24 | |||
| 25 | |||
| 26 | /** | ||
| 27 | * Overload the __get method to allow property access of methods. | ||
| 28 | * | ||
| 29 | * @param string $key | ||
| 30 | * | ||
| 31 | * @return mixed | ||
| 32 | */ | ||
| 33 | public function __get($key) | ||
| 39 | } | ||
| 40 |