| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| 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 | 3 | public function __construct() |
|
| 20 | { |
||
| 21 | 3 | $this->exists = app()->make(ExistsUser::class); |
|
| 22 | 3 | $this->delete = app()->make(DeleteUser::class); |
|
| 23 | 3 | } |
|
| 24 | |||
| 25 | /** |
||
| 26 | * @param User $user |
||
| 27 | * @return bool |
||
| 28 | * @throws UserDoesNotExistsException |
||
| 29 | */ |
||
| 30 | 3 | public function make(User $user): bool |
|
| 39 | } |
||
| 40 | } |
||
| 41 |