PHP Class Webmozart\Expression\Constraint\KeyExists

Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: extends Webmozart\Expression\Logic\Literal
Datei anzeigen Open project: webmozart/expression Class Usage Examples

Public Methods

Method Description
__construct ( string $key ) Creates the expression.
equivalentTo ( Webmozart\Expression\Expression $other )
evaluate ( $value )
getKey ( ) : string Returns the array key.
toString ( )

Method Details

__construct() public method

Creates the expression.
public __construct ( string $key )
$key string The array key.

equivalentTo() public method

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

evaluate() public method

public evaluate ( $value )

getKey() public method

Returns the array key.
public getKey ( ) : string
return string The array key.

toString() public method

public toString ( )