public function getUrl()
    {
        return $this->url && $this->token
            ? $this->url  . '?token=' . $this->token
            : null;
    }
public function getUrl()
    {
        return $this->url && $this->token
            ? $this->url  . '?token=' . $this->token
            : null;
    }
public function getUrl ( ) { return $ this -> url && $ this -> token ? $ this -> url . '?token=' . $ this -> token : null ; }
Returns a fully functional string

@return string|null
Returns a fully functional string