property() public static method

Check that the value of a property matches an expression.
public static property ( string $propertyName, Webmozart\Expression\Expression $expr ) : Method
$propertyName string The name of the property.
$expr Webmozart\Expression\Expression The evaluated expression.
return Webmozart\Expression\Selector\Method The created expression.
Ejemplo n.º 1
0
 public function orProperty($propertyName, Expression $expr)
 {
     return $this->orX(Expr::property($propertyName, $expr));
 }
Ejemplo n.º 2
0
 public function andProperty($propertyName, Expression $expr)
 {
     return $this->andX(Expr::property($propertyName, $expr));
 }