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
XmlDeserializable.php
39 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AmeliaVendor\Sabre\Xml; |
| 6 | |
| 7 | /** |
| 8 | * Implementing the XmlDeserializable interface allows you to use a class as a |
| 9 | * deserializer for a specific element. |
| 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 XmlDeserializable |
| 16 | { |
| 17 | /** |
| 18 | * The deserialize method is called during xml parsing. |
| 19 | * |
| 20 | * This method is called statically, this is because in theory this method |
| 21 | * may be used as a type of constructor, or factory method. |
| 22 | * |
| 23 | * Often you want to return an instance of the current class, but you are |
| 24 | * free to return other data as well. |
| 25 | * |
| 26 | * You are responsible for advancing the reader to the next element. Not |
| 27 | * doing anything will result in a never-ending loop. |
| 28 | * |
| 29 | * If you just want to skip parsing for this element altogether, you can |
| 30 | * just call $reader->next(); |
| 31 | * |
| 32 | * $reader->parseInnerTree() will parse the entire sub-tree, and advance to |
| 33 | * the next element. |
| 34 | * |
| 35 | * @return mixed see comments above |
| 36 | */ |
| 37 | public static function xmlDeserialize(Reader $reader); |
| 38 | } |
| 39 |