| 1 | <?php |
||
| 18 | class CollectionCriteria extends MongoCriteria |
||
| 19 | { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var MongoProperty |
||
| 23 | */ |
||
| 24 | private $property; |
||
| 25 | /** |
||
| 26 | * @var mixed |
||
| 27 | */ |
||
| 28 | private $expression; |
||
| 29 | /** |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | private $operator; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Returns a criterion that requires the given <code>property</code> value to be present in the given |
||
| 36 | * <code>expression</code> to evaluate to <code>true</code>. |
||
| 37 | * |
||
| 38 | * @param MongoProperty $property The property to match |
||
| 39 | * @param string $operator The collection operator to use |
||
| 40 | * @param mixed $expression The expression to that expresses the collection to match against the property |
||
| 41 | */ |
||
| 42 | 3 | public function __construct(MongoProperty $property, $operator, $expression) |
|
| 48 | |||
| 49 | |||
| 50 | 3 | public function asMongoObject() |
|
| 59 | } |