Total Complexity | 3 |
Total Lines | 32 |
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 | * |
||
18 | * @throws \Illuminate\Contracts\Container\BindingResolutionException |
||
19 | */ |
||
20 | public function __construct() |
||
21 | { |
||
22 | $this->exists = app()->make(ExistsUser::class); |
||
23 | $this->delete = app()->make(DeleteUser::class); |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @param User $user |
||
28 | * |
||
29 | * @throws UserDoesNotExistsException |
||
30 | * |
||
31 | * @return bool |
||
32 | */ |
||
33 | public function make(User $user): bool |
||
42 | } |
||
43 | } |
||
44 |