| @@ 40-45 (lines=6) @@ | ||
| 37 | return call_user_func_array([$this->getConfig(), $method], $arguments); |
|
| 38 | } elseif (substr($method, 0, 3) == 'get') { |
|
| 39 | $propertyName = lcfirst(substr($method, 3)); |
|
| 40 | } elseif (substr($method, 0, 3) == 'set') { |
|
| 41 | $propertyName = lcfirst(substr($method, 3)); |
|
| 42 | $this->getConfig()->set($propertyName, $arguments[0]); |
|
| 43 | ||
| 44 | return $this; |
|
| 45 | } elseif (substr($method, 0, 2) == 'is') { |
|
| 46 | $propertyName = lcfirst(substr($method, 2)); |
|
| 47 | } |
|
| 48 | if (in_array($propertyName, ['name', 'description', 'deprecationReason', 'isDeprecated', 'field', 'type'])) { |
|
| @@ 129-134 (lines=6) @@ | ||
| 126 | { |
|
| 127 | if (substr($method, 0, 3) == 'get') { |
|
| 128 | $propertyName = lcfirst(substr($method, 3)); |
|
| 129 | } elseif (substr($method, 0, 3) == 'set') { |
|
| 130 | $propertyName = lcfirst(substr($method, 3)); |
|
| 131 | $this->set($propertyName, $arguments[0]); |
|
| 132 | ||
| 133 | return $this; |
|
| 134 | } elseif (substr($method, 0, 2) == 'is') { |
|
| 135 | $propertyName = lcfirst(substr($method, 2)); |
|
| 136 | } else { |
|
| 137 | throw new \Exception('Call to undefined method ' . $method); |
|