protected function compileBody(Builder $query)
    {
        $body = [];

        $hasBody = !is_null($query->body);

        if ($hasBody) {
            foreach ($query->body as $postField) {
                $body[$postField['column']] = $postField['value'];
            }

            if (count($body) > 0) {
                return $body;
            }
        }

        return '';
    }
protected function compileBody(Builder $query)
    {
        $body = [];

        $hasBody = !is_null($query->body);

        if ($hasBody) {
            foreach ($query->body as $postField) {
                $body[$postField['column']] = $postField['value'];
            }

            if (count($body) > 0) {
                return $body;
            }
        }

        return '';
    }
protected function compileBody ( Builder $ query ) { $ body = [ ] ; $ hasBody = ! is_null ( $ query -> body ) ; if ( $ hasBody ) { foreach ( $ query -> body as $ postField ) { $ body [ $ postField [ 'column' ] ] = $ postField [ 'value' ] ; } if ( count ( $ body ) > 0 ) { return $ body ; } } return '' ; }
Compile the "body" portions of the query.

@param  \Kevindierkx\Elicit\Query\Builder $query
@return string
Compile the body portions of the query .