Check that the count of a collection matches an expression.
public static count ( Webmozart\Expression\Expression $expr ) : |
||
$expr | Webmozart\Expression\Expression | The evaluated expression. |
리턴 | The created expression. |
public function __construct() { parent::__construct('getBookings', array(), Expr::count(Expr::greaterThan(0))); }
public function orCount(Expression $expr) { return $this->orX(Expr::count($expr)); }
public function andCount(Expression $expr) { return $this->andX(Expr::count($expr)); }