Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class ExistsAndDeleteUser |
||
11 | { |
||
12 | private $exists; |
||
13 | private $delete; |
||
14 | |||
15 | /** |
||
16 | * ExistsAndDeleteUser constructor. |
||
17 | * @throws \Illuminate\Contracts\Container\BindingResolutionException |
||
18 | */ |
||
19 | public function __construct() |
||
20 | { |
||
21 | $this->exists = app()->make(ExistsUser::class); |
||
22 | $this->delete = app()->make(DeleteUser::class); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @param User $user |
||
27 | * @return bool |
||
28 | * @throws UserDoesNotExistsException |
||
29 | */ |
||
30 | public function make(User $user): bool |
||
39 | } |
||
40 | } |
||
41 |