| Conditions | 2 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | 4 | public function make(): GenerateableInterface |
|
| 20 | { |
||
| 21 | 4 | $moduleName = $this->getModuleName(); |
|
| 22 | 4 | $className = $this->getClassName() ?: 'Mapping'; |
|
| 23 | |||
| 24 | $this |
||
| 25 | 4 | ->setQualifiedName("Saci\\{$moduleName}\\$className") |
|
| 26 | 4 | ->setInterfaces(['MappingInterface']) |
|
| 27 | 4 | ->setMethod( |
|
| 28 | 4 | PhpMethod::create('__invoke') |
|
| 29 | 4 | ->setType('array') |
|
| 30 | 4 | ->setDescription('Retorna o mapeamento dos commands') |
|
| 31 | ) |
||
| 32 | 4 | ->declareUse('GrupoCoqueiro\\CommandBus\\MappingInterface'); |
|
| 33 | |||
| 34 | 4 | return $this; |
|
| 35 | } |
||
| 36 | } |