JsonSimpleXMLElementDecorator
in package
implements
JsonSerializable
Class JsonSimpleXMLElementDecorator
Table of Contents
Interfaces
- JsonSerializable
Properties
- $subject : SimpleXMLElement
Methods
- __construct() : mixed
- JsonSimpleXMLElementDecorator constructor.
- jsonSerialize() : mixed
- Specify data which should be serialized to JSON
Properties
$subject
private
SimpleXMLElement
$subject
Methods
__construct()
JsonSimpleXMLElementDecorator constructor.
public
__construct(SimpleXMLElement $element) : mixed
Parameters
- $element : SimpleXMLElement
jsonSerialize()
Specify data which should be serialized to JSON
public
jsonSerialize() : mixed
Return values
mixed —data which can be serialized by json_encode.