| Total Complexity | 2 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | final class FaultActor extends AbstractElement |
||
| 18 | { |
||
| 19 | use StringElementTrait; |
||
| 20 | |||
| 21 | /** @var string */ |
||
| 22 | public const LOCALNAME = 'faultactor'; |
||
| 23 | |||
| 24 | /** @var null */ |
||
| 25 | public const NS = null; |
||
| 26 | |||
| 27 | /** @var null */ |
||
| 28 | public const NS_PREFIX = null; |
||
| 29 | |||
| 30 | |||
| 31 | /** |
||
| 32 | * Initialize an faultactor |
||
| 33 | * |
||
| 34 | * @param string $faultActor |
||
| 35 | */ |
||
| 36 | public function __construct(string $faultActor) |
||
| 37 | { |
||
| 38 | $this->setContent($faultActor); |
||
| 39 | } |
||
| 40 | |||
| 41 | |||
| 42 | /** |
||
| 43 | * Validate the content of the element. |
||
| 44 | * |
||
| 45 | * @param string $content The value to go in the XML textContent |
||
| 46 | * @throws \Exception on failure |
||
| 47 | * @return void |
||
| 48 | */ |
||
| 49 | protected function validateContent(string $content): void |
||
| 52 | } |
||
| 53 | } |
||
| 54 |