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