private function getDefaultAsExpr($parameter)
    {
        $expr = $this->parser->parse('<?php ' . var_export($parameter->getSchema()->getDefault(), true) . ';')[0];

        if ($expr instanceof Stmt\Expression) {
            return $expr->expr;
        }

        return $expr;
    }
private function getDefaultAsExpr($parameter)
    {
        $expr = $this->parser->parse('<?php ' . var_export($parameter->getSchema()->getDefault(), true) . ';')[0];

        if ($expr instanceof Stmt\Expression) {
            return $expr->expr;
        }

        return $expr;
    }
private function getDefaultAsExpr ( $ parameter ) { $ expr = $ this -> parser -> parse ( '<?php ' . var_export ( $ parameter -> getSchema ( ) -> getDefault ( ) , true ) . ';' ) [ 0 ] ; if ( $ expr instanceof Stmt \ Expression ) { return $ expr -> expr ; } return $ expr ; }
Generate a default value as an Expr.

@param $parameter ParameterWithSchemaWithExampleInPath|ParameterWithSchemaWithExampleInHeader|ParameterWithSchemaWithExampleInQuery

@return Expr
Generate a default value as an Expr .