/** * Get the current uri string * * Possible ways to get the current page: * * Pixelpost_Uri::$uri; * Pixelpost_Uri::uri(); * * @param string $uri (optional) override the current uri string * @return string self::$uri current uri */ public static function uri(string $uri = NULL) { if (!empty($uri)) { self::$uri = $uri; } return self::$uri; }