| Total Complexity | 1 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | final class XPath extends AbstractSpElement |
||
| 20 | { |
||
| 21 | use TypedTextContentTrait; |
||
|
|
|||
| 22 | |||
| 23 | |||
| 24 | /** @var string */ |
||
| 25 | public const TEXTCONTENT_TYPE = StringValue::class; |
||
| 26 | |||
| 27 | |||
| 28 | /** |
||
| 29 | * Validate the content of the element. |
||
| 30 | * |
||
| 31 | * @param string $content The value to go in the XML textContent |
||
| 32 | * @throws \SimpleSAML\XMLSchema\Exception\SchemaViolationException on failure |
||
| 33 | * @return void |
||
| 34 | */ |
||
| 35 | protected function validateContent(string $content): void |
||
| 42 |