| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class Validator |
||
| 10 | { |
||
| 11 | /** @var \SimpleSAML\SAML2\Response\Validation\ConstraintValidator[] */ |
||
| 12 | protected array $constraints = []; |
||
| 13 | |||
| 14 | |||
| 15 | /** |
||
| 16 | * @param \SimpleSAML\SAML2\Response\Validation\ConstraintValidator $constraint |
||
| 17 | */ |
||
| 18 | public function addConstraintValidator(ConstraintValidator $constraint): void |
||
| 19 | { |
||
| 20 | $this->constraints[] = $constraint; |
||
| 21 | } |
||
| 22 | |||
| 23 | |||
| 24 | /** |
||
| 25 | * @param \SimpleSAML\SAML2\XML\samlp\Response $response |
||
| 26 | * @return \SimpleSAML\SAML2\Response\Validation\Result |
||
| 27 | */ |
||
| 28 | public function validate(Response $response): Result |
||
| 36 | } |
||
| 37 | } |
||
| 38 |