PHP Class Webmozart\Expression\Selector\Key

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

Méthodes publiques

Méthode Description
__construct ( string | integer $key, Webmozart\Expression\Expression $expr ) Creates the expression.
equivalentTo ( Webmozart\Expression\Expression $other )
evaluate ( $value )
getKey ( ) : string | integer Returns the array key.
toString ( )

Method Details

__construct() public méthode

Creates the expression.
public __construct ( string | integer $key, Webmozart\Expression\Expression $expr )
$key string | integer The array key.
$expr Webmozart\Expression\Expression The expression to evaluate for the key.

equivalentTo() public méthode

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

evaluate() public méthode

public evaluate ( $value )

getKey() public méthode

Returns the array key.
public getKey ( ) : string | integer
Résultat string | integer The array key.

toString() public méthode

public toString ( )