| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | 2 | public function create(CommandWasCreated $commandWasCreated) |
|
| 21 | { |
||
| 22 | 2 | $classMaker = new CommandClassMaker($commandWasCreated->getCommand()); |
|
| 23 | 2 | $generateable = $classMaker->generate(new Command()); |
|
| 24 | 2 | $stringClass = GeneratorClassFactory::create()->generate($generateable); |
|
| 25 | |||
| 26 | 2 | $stringClass = "<?php\n" . $stringClass; |
|
| 27 | |||
| 28 | 2 | (new Filesystem())->dumpFile( |
|
| 29 | 2 | $commandWasCreated->getCommand()->getLocalFileCommand(), |
|
| 30 | 2 | $stringClass |
|
| 31 | ); |
||
| 32 | |||
| 33 | 2 | return true; |
|
| 34 | } |
||
| 40 | } |