diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Psecio/Gatekeeper/Gatekeeper.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Psecio/Gatekeeper/Gatekeeper.php b/src/Psecio/Gatekeeper/Gatekeeper.php index 365da0b..a2fed7e 100644 --- a/src/Psecio/Gatekeeper/Gatekeeper.php +++ b/src/Psecio/Gatekeeper/Gatekeeper.php @@ -32,6 +32,10 @@ class Gatekeeper */ private static $throttleStatus = true; + /** + * Current set of restrictions + * @var array + */ private static $restrictions = array(); /** @@ -121,6 +125,16 @@ class Gatekeeper } /** + * Get the current list of restrictions + * + * @return array Set of restrictions + */ + public static function getRestrictions() + { + return self::$restrictions; + } + + /** * Load the variables using the .env handling * * @param string $envPath Path to the .env file |