atMost() public static method

Check that at most N entries of a traversable value match an expression.
public static atMost ( integer $count, Webmozart\Expression\Expression $expr ) : AtMost
$count integer The maximum number of entries that need to match.
$expr Webmozart\Expression\Expression The evaluated expression.
return Webmozart\Expression\Selector\AtMost The created expression.
Esempio n. 1
0
 public function orAtMost($count, Expression $expr)
 {
     return $this->orX(Expr::atMost($count, $expr));
 }
Esempio n. 2
0
 public function andAtMost($count, Expression $expr)
 {
     return $this->andX(Expr::atMost($count, $expr));
 }