| 1 | <?php |
||
| 10 | final class Query implements \Countable |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | private $criteria = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param CriterionInterface $criterion |
||
| 19 | * @return Query |
||
| 20 | */ |
||
| 21 | public function with(CriterionInterface $criterion): self |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function __toString(): string |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return int |
||
| 38 | */ |
||
| 39 | public function count() |
||
| 43 | } |