Total Complexity | 8 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Coverage | 69.23% |
Changes | 0 |
1 | <?php |
||
5 | class Consider |
||
6 | { |
||
7 | private $mode; |
||
8 | |||
9 | 12 | public function __construct($mode) |
|
12 | 12 | } |
|
13 | |||
14 | 2 | public function eloquentChecks(callable $closure = null) |
|
15 | { |
||
16 | 2 | return $this->turn('heyman_ignore_eloquent', $closure); |
|
17 | } |
||
18 | |||
19 | 1 | public function viewChecks(callable $closure = null) |
|
20 | { |
||
21 | 1 | return $this->turn('heyman_ignore_view', $closure); |
|
22 | } |
||
23 | |||
24 | 9 | public function routeChecks(callable $closure = null) |
|
25 | { |
||
26 | 9 | return $this->turn('heyman_ignore_route', $closure); |
|
27 | } |
||
28 | |||
29 | public function eventChecks(callable $closure = null) |
||
30 | { |
||
31 | return $this->turn('heyman_ignore_event', $closure); |
||
32 | } |
||
33 | |||
34 | public function allChecks() |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param $key |
||
44 | * @param callable|null $closure |
||
45 | */ |
||
46 | 12 | private function turn($key, callable $closure = null) |
|
63 |