Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
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 | $number = $input->getOption('amount'); |
||
40 | $class::build($number > 1 ? $number : 1); |
||
41 | $output->writeln(sprintf("Seed %s amount %s create success!", $class, $number)); |
||
42 | } |
||
43 | } |
||
44 |