Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 71.43% |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class Restriction extends Base |
||
6 | { |
||
7 | /** |
||
8 | * @var mixed[][] |
||
9 | */ |
||
10 | protected $checks = array(); |
||
11 | |||
12 | /** |
||
13 | * @param string $type |
||
14 | * @param mixed[] $value |
||
15 | * |
||
16 | * @return $this |
||
17 | */ |
||
18 | 45 | public function addCheck($type, $value) |
|
23 | } |
||
24 | |||
25 | /** |
||
26 | * @return mixed[][] |
||
27 | */ |
||
28 | 10 | public function getChecks() |
|
29 | { |
||
30 | 10 | return $this->checks; |
|
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param string $type |
||
35 | * |
||
36 | * @return mixed[] |
||
37 | */ |
||
38 | public function getChecksByType($type) |
||
41 | } |
||
42 | } |
||
43 |