| 1 | <?php |
||
| 15 | class Validation implements RestAnnotationInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | private $groups; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | private $violationPathMap; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var bool |
||
| 29 | */ |
||
| 30 | private $enabled; |
||
| 31 | |||
| 32 | 81 | public function __construct(array $options) |
|
| 38 | |||
| 39 | 81 | private function setGroups(array $groups): self |
|
| 44 | |||
| 45 | 81 | private function setViolationPathMap(array $violationPathMap): self |
|
| 50 | |||
| 51 | 81 | private function setEnabled(bool $enabled): self |
|
| 56 | |||
| 57 | 81 | public function isSeveralSupported(): bool |
|
| 61 | |||
| 62 | 81 | public function apply(RestRequestOptions $options, ReflectionMethodWrapper $reflectionMethod) |
|
| 75 | } |
||
| 76 |