Total Complexity | 7 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | abstract class UseCase implements UseCaseInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var RepositoryInterface|null |
||
17 | */ |
||
18 | private $repository = null; |
||
19 | |||
20 | public function __construct(RepositoryInterface $repository = null) |
||
24 | } |
||
25 | } |
||
26 | |||
27 | public function setRepository(RepositoryInterface $repository): UseCaseInterface |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @throws UndefinedRepositoryUseCaseException |
||
36 | */ |
||
37 | public function getRepository(): RepositoryInterface |
||
44 | } |
||
45 | |||
46 | /** |
||
47 | * @throws NotValidRequestException |
||
48 | */ |
||
49 | public function throwExceptionIfRequestNotValid(string $function, string $requestExpected, $requestUsed): void |
||
56 |