Webmozart\Expression\Expr::property PHP Method

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.
    public static function property($propertyName, Expression $expr)
    {
        return new Property($propertyName, $expr);
    }

Usage Example

Beispiel #1
0
 public function orProperty($propertyName, Expression $expr)
 {
     return $this->orX(Expr::property($propertyName, $expr));
 }
All Usage Examples Of Webmozart\Expression\Expr::property