| @@ 71-82 (lines=12) @@ | ||
| 68 | return ($this->object)(...$args); |
|
| 69 | } |
|
| 70 | ||
| 71 | public function __get($name) |
|
| 72 | { |
|
| 73 | if ($name === 'id') { |
|
| 74 | return $this->id; |
|
| 75 | } |
|
| 76 | ||
| 77 | if ($this->object === null) { |
|
| 78 | $this->loadObject(); |
|
| 79 | } |
|
| 80 | ||
| 81 | return $this->object->$name; |
|
| 82 | } |
|
| 83 | ||
| 84 | public function __isset($name) |
|
| 85 | { |
|
| @@ 84-95 (lines=12) @@ | ||
| 81 | return $this->object->$name; |
|
| 82 | } |
|
| 83 | ||
| 84 | public function __isset($name) |
|
| 85 | { |
|
| 86 | if ($name === 'id') { |
|
| 87 | return true; |
|
| 88 | } |
|
| 89 | ||
| 90 | if ($this->object === null) { |
|
| 91 | $this->loadObject(); |
|
| 92 | } |
|
| 93 | ||
| 94 | return isset($this->object->$name); |
|
| 95 | } |
|
| 96 | ||
| 97 | public function __unset($name) |
|
| 98 | { |
|