| Conditions | 4 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | protected function checkRequiredInput(SaleCreateCommand $command) |
||
| 31 | { |
||
| 32 | if (empty($command->customer)) { |
||
| 33 | throw new RequiredInputException('customer'); |
||
| 34 | } |
||
| 35 | if (empty($command->target)) { |
||
| 36 | throw new RequiredInputException('target'); |
||
| 37 | } |
||
| 38 | if (empty($command->plan)) { |
||
| 39 | throw new RequiredInputException('plan'); |
||
| 40 | } |
||
| 43 |