mirror of
https://codeberg.org/icewind/SearchDAV.git
synced 2026-06-04 10:04:06 +02:00
add query parser tests
This commit is contained in:
parent
3f23e989f0
commit
5f6b358839
5 changed files with 107 additions and 2 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue