The arguments can be any valid expression as long as they each resolve to an array.
public setIsSubset ( mixed | self $expression1, mixed | self $expression2 ) | ||
$expression1 | mixed | self | |
$expression2 | mixed | self |
/** * Takes two arrays and returns true when the first array is a subset of the * second, including when the first array equals the second array, and false * otherwise. * * The arguments can be any valid expression as long as they each resolve to an array. * * @see http://docs.mongodb.org/manual/reference/operator/aggregation/setIsSubset/ * @see Expr::setIsSubset * @param mixed|Expr $expression1 * @param mixed|Expr $expression2 * @return $this */ public function setIsSubset($expression1, $expression2) { $this->expr->setIsSubset($expression1, $expression2); return $this; }