| @@ 40-42 (lines=3) @@ | ||
| 37 | ||
| 38 | public function __set($name, $value) |
|
| 39 | { |
|
| 40 | if (!$this->exists($name) && $this->exists(lcfirst($name))) { |
|
| 41 | $name = lcfirst($name); |
|
| 42 | } |
|
| 43 | ||
| 44 | $this->$name = $value; |
|
| 45 | } |
|
| @@ 128-130 (lines=3) @@ | ||
| 125 | */ |
|
| 126 | protected function getNameInCorrectCase($name) |
|
| 127 | { |
|
| 128 | if (!$this->exists($name) && $this->exists(lcfirst($name))) { |
|
| 129 | $name = lcfirst($name); |
|
| 130 | } |
|
| 131 | ||
| 132 | if (!$this->exists($name)) { |
|
| 133 | throw new \Exception('Property ' . $name . ' does not exist'); |
|