PHP Class Webmozart\Expression\Selector\Property

Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: extends Selector
Show file Open project: webmozart/expression Class Usage Examples

Public Methods

Method Description
__construct ( string $propertyName, Webmozart\Expression\Expression $expr ) Creates the expression.
equivalentTo ( Webmozart\Expression\Expression $other )
evaluate ( $value )
getPropertyName ( ) : string Returns the property name.
toString ( )

Method Details

__construct() public method

Creates the expression.
public __construct ( string $propertyName, Webmozart\Expression\Expression $expr )
$propertyName string The name of the property.
$expr Webmozart\Expression\Expression The expression to evaluate for the result.

equivalentTo() public method

public equivalentTo ( Webmozart\Expression\Expression $other )
$other Webmozart\Expression\Expression

evaluate() public method

public evaluate ( $value )

getPropertyName() public method

Returns the property name.
public getPropertyName ( ) : string
return string The property name.

toString() public method

public toString ( )