| 1 | <?php |
||
| 7 | class Restriction extends Base |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var mixed[][] |
||
| 11 | */ |
||
| 12 | protected $checks = array(); |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string $type |
||
| 16 | * @param mixed[] $value |
||
| 17 | */ |
||
| 18 | 47 | public function addCheck(string $type, array $value): void |
|
| 22 | |||
| 23 | /** |
||
| 24 | * @return mixed[][] |
||
| 25 | */ |
||
| 26 | 10 | public function getChecks(): array |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $type |
||
| 33 | * |
||
| 34 | * @return mixed[] |
||
| 35 | */ |
||
| 36 | public function getChecksByType(string $type): array |
||
| 40 | } |
||
| 41 |