Deserializer
6 months ago
Element
6 months ago
Serializer
6 months ago
ContextStackTrait.php
6 months ago
Element.php
6 months ago
LibXMLException.php
6 months ago
ParseException.php
6 months ago
Reader.php
6 months ago
Service.php
6 months ago
Version.php
6 months ago
Writer.php
6 months ago
XmlDeserializable.php
6 months ago
XmlSerializable.php
6 months ago
XmlSerializable.php
35 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AmeliaVendor\Sabre\Xml; |
| 6 | |
| 7 | /** |
| 8 | * Objects implementing XmlSerializable can control how they are represented in |
| 9 | * Xml. |
| 10 | * |
| 11 | * @copyright Copyright (C) 2009-2015 fruux GmbH (https://fruux.com/). |
| 12 | * @author Evert Pot (http://evertpot.com/) |
| 13 | * @license http://sabre.io/license/ Modified BSD License |
| 14 | */ |
| 15 | interface XmlSerializable |
| 16 | { |
| 17 | /** |
| 18 | * The xmlSerialize method is called during xml writing. |
| 19 | * |
| 20 | * Use the $writer argument to write its own xml serialization. |
| 21 | * |
| 22 | * An important note: do _not_ create a parent element. Any element |
| 23 | * implementing XmlSerializable should only ever write what's considered |
| 24 | * its 'inner xml'. |
| 25 | * |
| 26 | * The parent of the current element is responsible for writing a |
| 27 | * containing element. |
| 28 | * |
| 29 | * This allows serializers to be re-used for different element names. |
| 30 | * |
| 31 | * If you are opening new elements, you must also close them again. |
| 32 | */ |
| 33 | public function xmlSerialize(Writer $writer): void; |
| 34 | } |
| 35 |