Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class GateCallback extends Callback |
||
9 | { |
||
10 | /** |
||
11 | * @var \Illuminate\Contracts\Auth\Access\Gate |
||
12 | */ |
||
13 | protected $gate; |
||
14 | |||
15 | /** |
||
16 | * @param array $specs Specification for the callback to be called |
||
17 | * @param \Illuminate\Contracts\Auth\Access\Gate $gate The service container that will be used to resolve the callable |
||
18 | */ |
||
19 | 27 | public function __construct(array $specs, Gate $gate) |
|
28 | 9 | } |
|
29 | |||
30 | /** |
||
31 | * Check if the abilities are allowed against the gate. |
||
32 | */ |
||
33 | 6 | public function check(): bool |
|
38 |