PHP Class Webmozart\Expression\Constraint\Contains

Since: 1.0
Author: Bernhard Schussek ([email protected])
Author: Stephan Wentz ([email protected])
Inheritance: extends Webmozart\Expression\Logic\Literal
Afficher le fichier Open project: webmozart/expression Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $comparedValue ) Creates the expression.
equivalentTo ( Webmozart\Expression\Expression $other )
evaluate ( $value )
getComparedValue ( ) : string Returns the accepted suffix.
toString ( )

Method Details

__construct() public méthode

Creates the expression.
public __construct ( string $comparedValue )
$comparedValue string The compared value.

equivalentTo() public méthode

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

evaluate() public méthode

public evaluate ( $value )

getComparedValue() public méthode

Returns the accepted suffix.
public getComparedValue ( ) : string
Résultat string The accepted suffix.

toString() public méthode

public toString ( )