Webmozart\Expression\Selector\Method::__construct PHP Method

__construct() public method

Creates the expression.
public __construct ( string $methodName, array $arguments, Webmozart\Expression\Expression $expr )
$methodName string The name of the method to call.
$arguments array The arguments to pass to the method.
$expr Webmozart\Expression\Expression The expression to evaluate for the result.
    public function __construct($methodName, array $arguments, Expression $expr)
    {
        parent::__construct($expr);
        $this->methodName = $methodName;
        $this->arguments = $arguments;
    }

Usage Example

コード例 #1
0
 public function __construct()
 {
     parent::__construct('getBookings', array(), Expr::count(Expr::greaterThan(0)));
 }
All Usage Examples Of Webmozart\Expression\Selector\Method::__construct