| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 4 | public function make(): GenerateableInterface |
|
| 21 | { |
||
| 22 | 4 | $moduleName = $this->getModuleName(); |
|
| 23 | 4 | $className = $this->getClassName(); |
|
| 24 | |||
| 25 | 4 | if (!$className) { |
|
| 26 | 1 | throw new ClassNameIsNullException('Não foi informado a nome para a Command. Utilize o método setClassName para innforma o nome da classe!'); |
|
| 27 | } |
||
| 28 | |||
| 29 | $this |
||
| 30 | 3 | ->setQualifiedName("Saci\\{$moduleName}\\UseCase\\{$className}") |
|
| 31 | 3 | ->setMethod( |
|
| 32 | 3 | PhpMethod::create('__construct') |
|
| 33 | ); |
||
| 34 | |||
| 35 | 3 | return $this; |
|
| 36 | } |
||
| 37 | } |