| @@ 67-74 (lines=8) @@ | ||
| 64 | } |
|
| 65 | } |
|
| 66 | ||
| 67 | public function __set($property, $value) |
|
| 68 | { |
|
| 69 | if (!in_array($property, static::$params, true)) { |
|
| 70 | throw new Exception(sprintf('"%s" is required', $property)); |
|
| 71 | } |
|
| 72 | ||
| 73 | return parent::__set($property, $value); |
|
| 74 | } |
|
| 75 | } |
|
| 76 | ||
| @@ 208-215 (lines=8) @@ | ||
| 205 | } |
|
| 206 | } |
|
| 207 | ||
| 208 | public function __set($property, $value) |
|
| 209 | { |
|
| 210 | if (!in_array($property, static::$allowParams, true)) { |
|
| 211 | throw new Exception(sprintf('"%s" is not required', $property)); |
|
| 212 | } |
|
| 213 | ||
| 214 | return static::$params[$property] = $value; |
|
| 215 | } |
|
| 216 | } |
|
| 217 | ||