@@ 662-664 (lines=3) @@ | ||
659 | /** |
|
660 | * Sort |
|
661 | */ |
|
662 | if (isset($options[Query::SORT]) && !is_array($options[Query::SORT])) { |
|
663 | throw new \InvalidArgumentException(Query::SORT . ' option must be an array'); |
|
664 | } |
|
665 | ||
666 | /** |
|
667 | * Proj |
|
@@ 669-671 (lines=3) @@ | ||
666 | /** |
|
667 | * Proj |
|
668 | */ |
|
669 | if (isset($options[Query::PROJECTION]) && !is_array($options[Query::PROJECTION])) { |
|
670 | throw new \InvalidArgumentException(Query::PROJECTION . ' option must be an array'); |
|
671 | } |
|
672 | ||
673 | /** |
|
674 | * limit |
|
@@ 676-678 (lines=3) @@ | ||
673 | /** |
|
674 | * limit |
|
675 | */ |
|
676 | if (isset($options[Query::LIMIT]) && !is_integer($options[Query::LIMIT])) { |
|
677 | throw new \InvalidArgumentException(Query::LIMIT . " option must be an integer"); |
|
678 | } |
|
679 | ||
680 | /** |
|
681 | * offset |
|
@@ 683-685 (lines=3) @@ | ||
680 | /** |
|
681 | * offset |
|
682 | */ |
|
683 | if (isset($options[Query::OFFSET]) && !is_integer($options[Query::OFFSET])) { |
|
684 | throw new \InvalidArgumentException(Query::OFFSET . ' option must be an array'); |
|
685 | } |
|
686 | ||
687 | // TODO validate other options |
|
688 | } |