PHP 인터페이스 Webmozart\Expression\Expression

부터: 1.0
저자: Bernhard Schussek ([email protected])
파일 보기 프로젝트 열기: webmozart/expression 0 사용 예제들

공개 메소드들

메소드 설명
equivalentTo ( Webmozart\Expression\Expression $other ) : boolean Returns whether this expression is logically equivalent to another expression.
evaluate ( mixed $value ) : boolean Evaluates the expression with the given value.
toString ( ) : string Returns a string representation of the expression.

메소드 상세

equivalentTo() 공개 메소드

Returns whether this expression is logically equivalent to another expression.
public equivalentTo ( Webmozart\Expression\Expression $other ) : boolean
$other Webmozart\Expression\Expression Some expression.
리턴 boolean Returns `true` if the expressions are logically equivalent and `false` otherwise.

evaluate() 공개 메소드

Evaluates the expression with the given value.
public evaluate ( mixed $value ) : boolean
$value mixed A value.
리턴 boolean Returns `true` if the value satisfies the expression and `false` otherwise.

toString() 공개 메소드

Returns a string representation of the expression.
public toString ( ) : string
리턴 string The expression as string.