Total Complexity | 8 |
Total Lines | 84 |
Duplicated Lines | 0 % |
Coverage | 95.24% |
Changes | 0 |
1 | <?php |
||
8 | class Restriction extends Base |
||
9 | { |
||
10 | /** |
||
11 | * @var mixed[][] |
||
12 | */ |
||
13 | protected $checks = array(); |
||
14 | |||
15 | /** |
||
16 | * @param string $type |
||
17 | * @param mixed[] $value |
||
18 | * |
||
19 | * @return $this |
||
20 | */ |
||
21 | 135 | public function addCheck($type, $value) |
|
25 | } |
||
26 | |||
27 | /** |
||
28 | * @return mixed[][] |
||
29 | */ |
||
30 | 30 | public function getChecks() |
|
31 | { |
||
32 | 30 | return $this->checks; |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param string $type |
||
37 | * |
||
38 | * @return mixed[] |
||
39 | */ |
||
40 | public function getChecksByType($type) |
||
43 | } |
||
44 | |||
45 | 135 | public static function loadRestriction( |
|
92 | 45 | ] |
|
93 | 45 | ); |
|
98 |