| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | public function resolve($className) |
||
| 55 | { |
||
| 56 | $methodName = parent::resolve($className); |
||
| 57 | if (substr($methodName, $this->suffixLength * -1) !== $this->suffixToRemove) { |
||
| 58 | throw new \Exception(sprintf('Invalid suffix %s', $this->suffixToRemove)); |
||
| 59 | } |
||
| 60 | |||
| 61 | return substr($methodName, 0, strlen($methodName) - $this->suffixLength).$this->suffixToAdd; |
||
| 62 | } |
||
| 63 | } |
||
| 64 |