Pinq\Tests\Integration\Queries\Functions\FunctionTest::functionWithReturnStatement PHP Method

functionWithReturnStatement() protected method

    protected function functionWithReturnStatement()
    {
        return $this->buildFunction('', __CLASS__, __NAMESPACE__, ['param' => 'scope'], [O\Expression::parameter('foo')], [O\Expression::value('before'), O\Expression::returnExpression(O\Expression::value('return')), O\Expression::value('after'), O\Expression::functionCall(O\Expression::value('boom'))]);
    }