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