Habari\RestResponse::get PHP Метод

get() публичный Метод

public get ( )
    public function get()
    {
        $mimelist = $this->get_mime_list();
        $accept = $this->get_accept();
        $response = null;
        if (is_string($this->response)) {
            $response = $this->response;
        } elseif (is_array($this->response)) {
            $response = $mimelist[$accept]($this->response);
        } elseif ($this->response instanceof DOMElement) {
            $response = $mimelist[$accept]($this->response);
        }
        $response = Plugins::filter('rest_response', $response, $accept, $this->response);
        return $response;
    }