Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
35 | 16 | private function setMethod(string $property): string |
|
36 | { |
||
37 | 16 | $method = $this->snakeCaseToCamelCase('set'.$property); |
|
38 | |||
39 | 16 | if (! method_exists($this, $method)) { |
|
40 | 3 | throw new MethodDoesNotExistsException("Method {$method} does not exists."); |
|
41 | } |
||
42 | |||
43 | 13 | return $method; |
|
44 | } |
||
56 |