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