| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class CIDRValue extends SAMLStringValue |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Sanitize the content of the element. |
||
| 16 | * |
||
| 17 | * @param string $value The unsanitized value |
||
| 18 | * @throws \Exception on failure |
||
| 19 | * @return string |
||
| 20 | */ |
||
| 21 | protected function sanitizeValue(string $value): string |
||
| 22 | { |
||
| 23 | return static::collapseWhitespace(static::normalizeWhitespace($value)); |
||
| 24 | } |
||
| 25 | |||
| 26 | |||
| 27 | /** |
||
| 28 | * Validate the content of the element. |
||
| 29 | * |
||
| 30 | * @param string $value The value to go in the XML textContent |
||
| 31 | * @throws \Exception on failure |
||
| 32 | * @return void |
||
| 33 | */ |
||
| 34 | protected function validateValue(string $value): void |
||
| 37 | } |
||
| 38 | } |
||
| 39 |