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