PHP Class Webmozart\Expression\Constraint\EndsWith

Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: extends Webmozart\Expression\Logic\Literal
ファイルを表示 Open project: webmozart/expression Class Usage Examples

Public Methods

Method Description
__construct ( string $acceptedSuffix ) Creates the expression.
equivalentTo ( Webmozart\Expression\Expression $other )
evaluate ( $value )
getAcceptedSuffix ( ) : string Returns the accepted suffix.
toString ( )

Method Details

__construct() public method

Creates the expression.
public __construct ( string $acceptedSuffix )
$acceptedSuffix string The accepted suffix.

equivalentTo() public method

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

evaluate() public method

public evaluate ( $value )

getAcceptedSuffix() public method

Returns the accepted suffix.
public getAcceptedSuffix ( ) : string
return string The accepted suffix.

toString() public method

public toString ( )