Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
39 | 3 | public function getMethodName(string $commandClassName): string |
|
40 | { |
||
41 | 3 | $methodName = $this->handleLastPartOfClassName->getMethodName($commandClassName); |
|
42 | |||
43 | 3 | if (substr($methodName, $this->suffixLength * -1) !== $this->suffix) { |
|
44 | 1 | return $methodName; |
|
45 | } |
||
46 | |||
47 | 2 | return substr($methodName, 0, strlen($methodName) - $this->suffixLength); |
|
48 | } |
||
50 |