| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class DeleteLoanCommandHandler implements CommandHandlerInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var LoanRepository |
||
| 15 | */ |
||
| 16 | private $repository; |
||
| 17 | /** |
||
| 18 | * @var MessageBusInterface |
||
| 19 | */ |
||
| 20 | private $eventBus; |
||
| 21 | /** |
||
| 22 | * @var LoggerInterface |
||
| 23 | */ |
||
| 24 | private $logger; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param MessageBusInterface $eventBus |
||
| 28 | * @param LoanRepository $repository |
||
| 29 | * @param LoggerInterface $logger |
||
| 30 | */ |
||
| 31 | 2 | public function __construct(MessageBusInterface $eventBus, LoanRepository $repository, LoggerInterface $logger) |
|
| 32 | { |
||
| 33 | 2 | $this->eventBus = $eventBus; |
|
| 34 | 2 | $this->repository = $repository; |
|
| 35 | 2 | $this->logger = $logger; |
|
| 36 | 2 | } |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @param DeleteLoanCommand $command |
||
| 40 | */ |
||
| 41 | 2 | public function __invoke(DeleteLoanCommand $command) |
|
| 49 | } |
||
| 50 | 1 | } |
|
| 52 |