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