| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class UseCase |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var Repository |
||
| 24 | */ |
||
| 25 | private $repository; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var FromBoardFactory |
||
| 29 | */ |
||
| 30 | private $factory; |
||
| 31 | |||
| 32 | public function __construct(Repository $repository, FromBoardFactory $factory) |
||
| 33 | { |
||
| 34 | $this->repository = $repository; |
||
| 35 | $this->factory = $factory; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param Command $command |
||
| 40 | * @throws InvalidCommandDataException |
||
| 41 | */ |
||
| 42 | public function handle(Command $command): void |
||
| 47 | } |
||
| 48 | } |
||
| 49 |