Total Complexity | 6 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class SaleCreateAction |
||
10 | { |
||
11 | /** |
||
12 | * @var SaleRepository |
||
13 | */ |
||
14 | private $repo; |
||
15 | |||
16 | public function __construct(SaleRepository $repo) |
||
17 | { |
||
18 | $this->repo = $repo; |
||
19 | } |
||
20 | |||
21 | public function __invoke(SaleCreateCommand $command): Sale |
||
28 | } |
||
29 | |||
30 | protected function checkRequiredInput(SaleCreateCommand $command) |
||
43 |