| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | final class Text extends AbstractSoapElement |
||
| 16 | { |
||
| 17 | use LocalizedStringElementTrait; |
||
|
1 ignored issue
–
show
|
|||
| 18 | |||
| 19 | |||
| 20 | /** |
||
| 21 | * Initialize a env:Text |
||
| 22 | * |
||
| 23 | * @param string $language |
||
| 24 | * @param string $content |
||
| 25 | */ |
||
| 26 | public function __construct(string $language, string $content) |
||
| 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\Assert\AssertionFailedException on failure |
||
| 38 | * @return void |
||
| 39 | */ |
||
| 40 | protected function validateContent(string $content): void |
||
| 45 |