protected function transform(Expression $expression)
    {
        $constraint = $expression->getConstraint();
        $getter = 'get'.ucfirst($expression->getSelector());

        return Expr::method($getter, new $constraint($expression->getValue()));
    }
protected function transform(Expression $expression)
    {
        $constraint = $expression->getConstraint();
        $getter = 'get'.ucfirst($expression->getSelector());

        return Expr::method($getter, new $constraint($expression->getValue()));
    }
protected function transform ( Expression $ expression ) { $ constraint = $ expression -> getConstraint ( ) ; $ getter = 'get' . ucfirst ( $ expression -> getSelector ( ) ) ; return Expr :: method ( $ getter , new $ constraint ( $ expression -> getValue ( ) ) ) ; }
Transform the expression to Webmozarts' Expression.

@param Expression $expression

@return \Webmozart\Expression\Expression
Transform the expression to Webmozarts Expression .