| 1 | <?php |
||
| 19 | class DuplicateUseCaseException extends Exception |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * |
||
| 23 | * @var UseCaseInterface |
||
| 24 | */ |
||
| 25 | protected $alreadyRegisteredUseCase; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * |
||
| 29 | * @var UseCaseInterface |
||
| 30 | */ |
||
| 31 | protected $duplicatedUseCase; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | protected $commandClass; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * |
||
| 41 | * @param UseCaseInterface $alreadyRegisteredUseCase |
||
| 42 | * @param UseCaseInterface $duplicatedUseCase |
||
| 43 | * @param string $commandClass |
||
| 44 | */ |
||
| 45 | public function __construct(UseCaseInterface $alreadyRegisteredUseCase, UseCaseInterface $duplicatedUseCase, $commandClass) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * |
||
| 54 | * @return UseCaseInterface |
||
| 55 | */ |
||
| 56 | public function getAlreadyRegisteredUseCase() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * |
||
| 63 | * @return UseCaseInterface |
||
| 64 | */ |
||
| 65 | public function getDuplicatedUseCase() |
||
| 69 | |||
| 70 | /** |
||
| 71 | * |
||
| 72 | * @return string |
||
| 73 | */ |
||
| 74 | public function getCommandClass() |
||
| 78 | } |
||
| 79 |