public function setUrl($url = '')
    {
        if(is_array($url) === true) {
            $url    = $url[key($url)];
        }

        $request = new Request();

        if (empty($url) === true) {

            $this->url = $request->getScheme() . '://' . $request->getHttpHost() . (new Router())->getRewriteUri();
        } else {
            $this->url = $request->getScheme() . '://' . $request->getHttpHost() . $url;
        }

        return $this;
    }