PHP Class Webmozart\Expression\Constraint\StartsWith

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

Public Methods

Method 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 method

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

equivalentTo() public method

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

evaluate() public method

public evaluate ( $value )

getAcceptedPrefix() public method

Returns the accepted prefix.
public getAcceptedPrefix ( ) : string
return string The accepted prefix.

toString() public method

public toString ( )