VCR\Request::toArray PHP Method

toArray() public method

Returns an array representation of this request.
public toArray ( ) : array
return array Array representation of this request.
    public function toArray()
    {
        return array_filter(array('method' => $this->getMethod(), 'url' => $this->getUrl(), 'headers' => $this->getHeaders(), 'body' => $this->getBody(), 'post_files' => $this->getPostFiles(), 'post_fields' => $this->getPostFields()));
    }