property() public static méthode

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.
Résultat Webmozart\Expression\Selector\Method The created expression.
Exemple #1
0
 public function orProperty($propertyName, Expression $expr)
 {
     return $this->orX(Expr::property($propertyName, $expr));
 }
Exemple #2
0
 public function andProperty($propertyName, Expression $expr)
 {
     return $this->andX(Expr::property($propertyName, $expr));
 }