From 3c8565b793228412f060a51cf3a8b8c21ffa6ca8 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 5 Jan 2017 21:23:15 +0100 Subject: [PATCH] Dockblocks --- Uri/UriFactory.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Uri/UriFactory.php b/Uri/UriFactory.php index 30fb96af7..5b254c51d 100644 --- a/Uri/UriFactory.php +++ b/Uri/UriFactory.php @@ -87,6 +87,14 @@ class UriFactory return false; } + /** + * Clear all uri components + * + * @return bool + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ public static function clearAll() : bool { self::$uri = []; @@ -94,6 +102,16 @@ class UriFactory return true; } + /** + * Clear uri component + * + * @param string $key Uri component key + * + * @return bool + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ public static function clear(string $key) : bool { if(isset(self::$uri[$key])) { @@ -105,6 +123,16 @@ class UriFactory return false; } + /** + * Clear uri components that follow a certain pattern + * + * @param string $pattern Uri key pattern to remove + * + * @return bool + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ public static function clearLike(string $pattern) : bool { $success = false;