| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 17 | private function setMethod(string $property): string |
|
| 32 | { |
||
| 33 | 17 | $method = $this->snakeCaseToCamelCase('set'.$property); |
|
| 34 | |||
| 35 | 17 | if (! method_exists($this, $method)) { |
|
| 36 | 3 | throw new MethodDoesNotExistsException("Method {$method} does not exists."); |
|
| 37 | } |
||
| 38 | |||
| 39 | 14 | return $method; |
|
| 40 | } |
||
| 41 | |||
| 51 |