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

@ -29,7 +29,8 @@ class Scope implements XmlDeserializable {
/**
* @var string
*
* The absolute url of the search scope
* The scope of the search, either as absolute uri or as a path relative to the
* search arbiter.
*/
public $href;
@ -42,6 +43,15 @@ class Scope implements XmlDeserializable {
*/
public $depth;
/**
* @param string $href
* @param int|string $depth
*/
public function __construct($href = '', $depth = 1) {
$this->href = $href;
$this->depth = $depth;
}
static function xmlDeserialize(Reader $reader) {
$scope = new self();