| @@ 155-157 (lines=3) @@ | ||
| 152 | } |
|
| 153 | ||
| 154 | $getter = 'get'.ucfirst($key); |
|
| 155 | if (!isset($this->mutatorCache[$getter])) { |
|
| 156 | $this->mutatorCache[$getter] = is_callable([ $this, $getter ]); |
|
| 157 | } |
|
| 158 | ||
| 159 | if ($this->mutatorCache[$getter]) { |
|
| 160 | return ($this->{$getter}() !== null); |
|
| @@ 164-166 (lines=3) @@ | ||
| 161 | } |
|
| 162 | ||
| 163 | // -- START DEPRECATED |
|
| 164 | if (!isset($this->mutatorCache[$key])) { |
|
| 165 | $this->mutatorCache[$key] = is_callable([ $this, $key ]); |
|
| 166 | } |
|
| 167 | ||
| 168 | if ($this->mutatorCache[$key]) { |
|
| 169 | return ($this->{$key}() !== null); |
|
| @@ 216-218 (lines=3) @@ | ||
| 213 | } |
|
| 214 | ||
| 215 | $getter = 'get'.ucfirst($key); |
|
| 216 | if (!isset($this->mutatorCache[$getter])) { |
|
| 217 | $this->mutatorCache[$getter] = is_callable([ $this, $getter ]); |
|
| 218 | } |
|
| 219 | ||
| 220 | if ($this->mutatorCache[$getter]) { |
|
| 221 | return $this->{$getter}(); |
|
| @@ 225-227 (lines=3) @@ | ||
| 222 | } |
|
| 223 | ||
| 224 | // -- START DEPRECATED |
|
| 225 | if (!isset($this->mutatorCache[$key])) { |
|
| 226 | $this->mutatorCache[$key] = is_callable([ $this, $key ]); |
|
| 227 | } |
|
| 228 | ||
| 229 | if ($this->mutatorCache[$key]) { |
|
| 230 | return $this->{$key}(); |
|
| @@ 276-278 (lines=3) @@ | ||
| 273 | } |
|
| 274 | ||
| 275 | $setter = 'set'.ucfirst($key); |
|
| 276 | if (!isset($this->mutatorCache[$setter])) { |
|
| 277 | $this->mutatorCache[$setter] = is_callable([ $this, $setter ]); |
|
| 278 | } |
|
| 279 | ||
| 280 | if ($this->mutatorCache[$setter]) { |
|
| 281 | $this->{$setter}($value); |
|
| @@ 169-171 (lines=3) @@ | ||
| 166 | } |
|
| 167 | ||
| 168 | $getter = 'get'.ucfirst($key); |
|
| 169 | if (!isset($this->mutatorCache[$getter])) { |
|
| 170 | $this->mutatorCache[$getter] = is_callable([ $this, $getter ]); |
|
| 171 | } |
|
| 172 | ||
| 173 | if ($this->mutatorCache[$getter]) { |
|
| 174 | return ($this->{$getter}() !== null); |
|
| @@ 178-180 (lines=3) @@ | ||
| 175 | } |
|
| 176 | ||
| 177 | // -- START DEPRECATED |
|
| 178 | if (!isset($this->mutatorCache[$key])) { |
|
| 179 | $this->mutatorCache[$key] = is_callable([ $this, $key ]); |
|
| 180 | } |
|
| 181 | ||
| 182 | if ($this->mutatorCache[$key]) { |
|
| 183 | return ($this->{$key}() !== null); |
|
| @@ 224-226 (lines=3) @@ | ||
| 221 | } |
|
| 222 | ||
| 223 | $getter = 'get'.ucfirst($key); |
|
| 224 | if (!isset($this->mutatorCache[$getter])) { |
|
| 225 | $this->mutatorCache[$getter] = is_callable([ $this, $getter ]); |
|
| 226 | } |
|
| 227 | ||
| 228 | if ($this->mutatorCache[$getter]) { |
|
| 229 | return $this->{$getter}(); |
|
| @@ 233-235 (lines=3) @@ | ||
| 230 | } |
|
| 231 | ||
| 232 | // -- START DEPRECATED |
|
| 233 | if (!isset($this->mutatorCache[$key])) { |
|
| 234 | $this->mutatorCache[$key] = is_callable([ $this, $key ]); |
|
| 235 | } |
|
| 236 | ||
| 237 | if ($this->mutatorCache[$key]) { |
|
| 238 | return $this->{$key}(); |
|
| @@ 280-282 (lines=3) @@ | ||
| 277 | } |
|
| 278 | ||
| 279 | $setter = 'set'.ucfirst($key); |
|
| 280 | if (!isset($this->mutatorCache[$setter])) { |
|
| 281 | $this->mutatorCache[$setter] = is_callable([ $this, $setter ]); |
|
| 282 | } |
|
| 283 | ||
| 284 | if ($this->mutatorCache[$setter]) { |
|
| 285 | $this->{$setter}($value); |
|