| 1 | <?php |
||
| 19 | class XmlWithProtectedField implements XmlConvertibleInterface |
||
| 20 | { |
||
| 21 | use XmlConvertible; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $protectedField; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * XmlWithProtectedField constructor. |
||
| 30 | * @param string $protectedFieldValue |
||
| 31 | */ |
||
| 32 | public function __construct(string $protectedFieldValue) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function getProtectedField(): string |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param string $newValue |
||
| 47 | * @return $this |
||
| 48 | */ |
||
| 49 | public function setProtectedField(string $newValue) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @param array|null $properties |
||
| 57 | * @return array |
||
| 58 | */ |
||
| 59 | public function getXmlProperties(array $properties = null): array |
||
| 63 | } |