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