add query parser tests

This commit is contained in:
Robin Appelman 2017-02-01 15:13:29 +01:00
commit 5f6b358839
5 changed files with 107 additions and 2 deletions

View file

@ -26,9 +26,23 @@ use Sabre\Xml\Reader;
use Sabre\Xml\XmlDeserializable;
class Literal implements XmlDeserializable {
/** @var string|boolean|\DateTime|integer */
/**
* @var string|boolean|\DateTime|integer
*
* The value of the literal
*/
public $value;
/**
* Literal constructor.
*
* @param bool|\DateTime|int|string $value
*/
public function __construct($value = '') {
$this->value = $value;
}
static function xmlDeserialize(Reader $reader) {
$literal = new self();