Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | abstract class AbstractEvent |
||
14 | { |
||
15 | protected Auth $auth; |
||
16 | protected User $user; |
||
17 | |||
18 | /** |
||
19 | * AbstractEvent constructor. |
||
20 | */ |
||
21 | 2 | public function __construct(Auth $auth, User $user) |
|
22 | { |
||
23 | 2 | $this->auth = $auth; |
|
24 | 2 | $this->user = $user; |
|
25 | } |
||
26 | |||
27 | /** |
||
28 | * Get the Auth service. |
||
29 | */ |
||
30 | 1 | final public function auth(): Auth |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * Get the user. |
||
37 | */ |
||
38 | 1 | final public function user(): User |
|
43 |