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

@ -42,6 +42,17 @@ class Order implements XmlDeserializable {
*/
public $order;
/**
* Order constructor.
*
* @param string $property
* @param string $order
*/
public function __construct($property = '', $order = self::ASC) {
$this->property = $property;
$this->order = $order;
}
static function xmlDeserialize(Reader $reader) {
$order = new self();