Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | final class Text extends AbstractSoapElement |
||
21 | { |
||
22 | use LocalizedStringElementTrait; |
||
1 ignored issue
–
show
|
|||
23 | |||
24 | |||
25 | /** |
||
26 | * Initialize a env:Text |
||
27 | * |
||
28 | * @param string $language |
||
29 | * @param string $content |
||
30 | */ |
||
31 | public function __construct(string $language, string $content) |
||
32 | { |
||
33 | $this->setContent($content); |
||
34 | $this->setLanguage($language); |
||
35 | } |
||
36 | |||
37 | |||
38 | /** |
||
39 | * Validate the content of the element. |
||
40 | * |
||
41 | * @param string $content The value to go in the XML textContent |
||
42 | * @throws \SimpleSAML\Assert\AssertionFailedException on failure |
||
43 | * @return void |
||
44 | */ |
||
45 | protected function validateContent(string $content): void |
||
48 | } |
||
49 | } |
||
50 |