| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | final class KeySize extends AbstractWstElement implements SchemaValidatableElementInterface |
||
| 18 | { |
||
| 19 | use IntegerElementTrait; |
||
|
|
|||
| 20 | use SchemaValidatableElementTrait; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * KeySize constructor. |
||
| 24 | * |
||
| 25 | * @param string $value The long. |
||
| 26 | */ |
||
| 27 | final public function __construct(string $value) |
||
| 28 | { |
||
| 29 | $this->setContent($value); |
||
| 30 | } |
||
| 31 | |||
| 32 | |||
| 33 | /** |
||
| 34 | * Validate the content of the element. |
||
| 35 | * |
||
| 36 | * @param string $content The value to go in the XML textContent |
||
| 37 | * @throws \SimpleSAML\XML\Exception\SchemaViolationException on failure |
||
| 38 | * @return void |
||
| 39 | */ |
||
| 40 | protected function validateContent(string $content): void |
||
| 45 | } |
||
| 46 | } |
||
| 47 |