public function getLink(): string
    {
        if ($this->link === null) {
            return str_replace("?" . $_SERVER["QUERY_STRING"], "", $_SERVER["REQUEST_URI"]);
        } else {
            return $this->link;
        }
    }
public function getLink(): string
    {
        if ($this->link === null) {
            return str_replace("?" . $_SERVER["QUERY_STRING"], "", $_SERVER["REQUEST_URI"]);
        } else {
            return $this->link;
        }
    }
public function getLink ( ) : string { if ( $ this -> link === null ) { return str_replace ( "?" . $ _SERVER [ "QUERY_STRING" ] , "" , $ _SERVER [ "REQUEST_URI" ] ) ; } else { return $ this -> link ; } }
Gets the current link

@return  string
Gets the current link