PHP Class Webmozart\Expression\Constraint\StartsWith

Since: 1.0
Author: Bernhard Schussek ([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 $acceptedPrefix ) Creates the expression.
equivalentTo ( Webmozart\Expression\Expression $other )
evaluate ( $value )
getAcceptedPrefix ( ) : string Returns the accepted prefix.
toString ( )

Method Details

__construct() public méthode

Creates the expression.
public __construct ( string $acceptedPrefix )
$acceptedPrefix string The accepted prefix.

equivalentTo() public méthode

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

evaluate() public méthode

public evaluate ( $value )

getAcceptedPrefix() public méthode

Returns the accepted prefix.
public getAcceptedPrefix ( ) : string
Résultat string The accepted prefix.

toString() public méthode

public toString ( )