public function setBaseUrl($root)
    {
        $baseUrl = str_replace(['https://', 'http://'], '', $root);
        $base    = explode('/', $baseUrl, 2);

        if (count($base) > 1) {
            $this->basePrefix = array_pop($base);
        }


        $this->baseUrl = array_shift($base);

        return $this;
    }