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