| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function getClassName(string $type): string |
||
| 39 | { |
||
| 40 | if ($type === 'gets') { |
||
| 41 | $className = 'Get' . $this->getBaseName($this->entityClassName) . 'sAction'; |
||
| 42 | } else { |
||
| 43 | $className = ucwords($type) . $this->getBaseName($this->entityClassName) . 'Action'; |
||
| 44 | } |
||
| 45 | |||
| 46 | return $this->getNs($this->entityClassName) . "\\$className"; |
||
| 47 | } |
||
| 49 |