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