Class Method
Checks whether the result of a method call matches an expression.
-
Webmozart\Expression\Logic\Literal
implements
Webmozart\Expression\Expression
-
Webmozart\Expression\Selector\Selector
-
Webmozart\Expression\Selector\Method
Methods summary
public
|
#
__construct( string $methodName, array $arguments, Webmozart\Expression\Expression $expr )
Creates the expression.
Parameters
- $methodName
- The name of the method to call.
- $arguments
- The arguments to pass to the method.
- $expr
- The expression to evaluate for the result.
Overrides
|
public
string
|
#
getMethodName( )
Returns the method name.
Returns
string The method name.
|
public
array
|
#
getArguments( )
Returns the method arguments.
Returns the method arguments.
Returns
array The method arguments.
|
public
boolean
|
#
evaluate( mixed $value )
Evaluates the expression with the given value.
Evaluates the expression with the given value.
Parameters
Returns
boolean Returns true if the value satisfies the expression and
false otherwise.
|
public
boolean
|
#
equivalentTo( Webmozart\Expression\Expression $other )
Returns whether this expression is logically equivalent to another expression.
Returns whether this expression is logically equivalent to another expression.
Parameters
Returns
boolean Returns true if the expressions are logically equivalent
and false otherwise.
Overrides
|
public
string
|
#
toString( )
Returns a string representation of the expression.
Returns a string representation of the expression.
Returns
string The expression as string.
|
Methods inherited from Webmozart\Expression\Logic\Literal
__toString(),
andAll(),
andAtLeast(),
andAtMost(),
andContains(),
andCount(),
andEmpty(),
andEndsWith(),
andEquals(),
andExactly(),
andFalse(),
andGreaterThan(),
andGreaterThanEqual(),
andIn(),
andInstanceOf(),
andKey(),
andKeyExists(),
andKeyNotExists(),
andLessThan(),
andLessThanEqual(),
andMatches(),
andMethod(),
andNot(),
andNotEmpty(),
andNotEquals(),
andNotNull(),
andNotSame(),
andNull(),
andProperty(),
andSame(),
andStartsWith(),
andTrue(),
andX(),
orAll(),
orAtLeast(),
orAtMost(),
orContains(),
orCount(),
orEmpty(),
orEndsWith(),
orEquals(),
orExactly(),
orFalse(),
orGreaterThan(),
orGreaterThanEqual(),
orIn(),
orInstanceOf(),
orKey(),
orKeyExists(),
orKeyNotExists(),
orLessThan(),
orLessThanEqual(),
orMatches(),
orMethod(),
orNot(),
orNotEmpty(),
orNotEquals(),
orNotNull(),
orNotSame(),
orNull(),
orProperty(),
orSame(),
orStartsWith(),
orTrue(),
orX()
|