| @@ 674-676 (lines=3) @@ | ||
| 671 | /** |
|
| 672 | * Sort |
|
| 673 | */ |
|
| 674 | if (isset($options[Query::SORT]) && !is_array($options[Query::SORT])) { |
|
| 675 | throw new \InvalidArgumentException(Query::SORT . ' option must be an array'); |
|
| 676 | } |
|
| 677 | ||
| 678 | /** |
|
| 679 | * Proj |
|
| @@ 681-683 (lines=3) @@ | ||
| 678 | /** |
|
| 679 | * Proj |
|
| 680 | */ |
|
| 681 | if (isset($options[Query::PROJECTION]) && !is_array($options[Query::PROJECTION])) { |
|
| 682 | throw new \InvalidArgumentException(Query::PROJECTION . ' option must be an array'); |
|
| 683 | } |
|
| 684 | ||
| 685 | /** |
|
| 686 | * limit |
|
| @@ 688-690 (lines=3) @@ | ||
| 685 | /** |
|
| 686 | * limit |
|
| 687 | */ |
|
| 688 | if (isset($options[Query::LIMIT]) && !is_integer($options[Query::LIMIT])) { |
|
| 689 | throw new \InvalidArgumentException(Query::LIMIT . " option must be an integer"); |
|
| 690 | } |
|
| 691 | ||
| 692 | /** |
|
| 693 | * offset |
|
| @@ 695-697 (lines=3) @@ | ||
| 692 | /** |
|
| 693 | * offset |
|
| 694 | */ |
|
| 695 | if (isset($options[Query::OFFSET]) && !is_integer($options[Query::OFFSET])) { |
|
| 696 | throw new \InvalidArgumentException(Query::OFFSET . ' option must be an array'); |
|
| 697 | } |
|
| 698 | ||
| 699 | // TODO validate other options |
|
| 700 | } |
|