@@ 149-157 (lines=9) @@ | ||
146 | * |
|
147 | * @return mixed |
|
148 | */ |
|
149 | public function __get($key) |
|
150 | { |
|
151 | $getter = 'get' . $this->classify($key); |
|
152 | if (method_exists($this, $getter)) { |
|
153 | return call_user_func(array($this, $getter)); |
|
154 | } |
|
155 | ||
156 | return $this->get($key); |
|
157 | } |
|
158 | ||
159 | /** |
|
160 | * Magic setter, calls getXXX if exists. |
@@ 164-172 (lines=9) @@ | ||
161 | * |
|
162 | * @return mixed |
|
163 | */ |
|
164 | public function __get($key) |
|
165 | { |
|
166 | $getter = 'get' . $this->classify($key); |
|
167 | if (method_exists($this, $getter)) { |
|
168 | return call_user_func(array($this, $getter)); |
|
169 | } |
|
170 | ||
171 | return $this->get($key); |
|
172 | } |
|
173 | ||
174 | /** |
|
175 | * Magic setter, calls setXXX if exists. |