| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 32 | { |
||
| 33 | |||
| 34 | if (!$class = $input->getOption('class')) { |
||
| 35 | $output->writeln("Class Model not set"); |
||
| 36 | return; |
||
| 37 | } |
||
| 38 | |||
| 39 | if($class::reset()){ |
||
| 40 | $output->writeln(sprintf("Seed %s reset success!", $class)); |
||
| 41 | } |
||
| 42 | else |
||
| 43 | $output->writeln("Command seed:reset fail to execute!"); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |