public function init($url = null)
    {
        $url       = (empty($url) ? Server::getInstance()->getCurrentUri() : $url);
        $this->url = parse_url($url);

        return $this;
    }
public function init($url = null)
    {
        $url       = (empty($url) ? Server::getInstance()->getCurrentUri() : $url);
        $this->url = parse_url($url);

        return $this;
    }
public function init ( $ url = null ) { $ url = ( empty ( $ url ) ? Server :: getInstance ( ) -> getCurrentUri ( ) : $ url ) ; $ this -> url = parse_url ( $ url ) ; return $ this ; }
Initialize object properties.

@param  string $url Url to parse. If null, get current url.
@return self
Initialize object properties .