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