summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Cornutt <chris.cornutt@hp.com>2015-01-30 16:41:31 -0600
committerChris Cornutt <chris.cornutt@hp.com>2015-01-30 16:41:31 -0600
commite37b57854fbca14b79fbd33d75848969bbac022a (patch)
treea559d06e3cd33d0094061c32d7ff7c5d5959dbaf
parente909cd236d24dd4ab3e286b7083cefcab1cc8320 (diff)
downloadgatekeeper-e37b57854fbca14b79fbd33d75848969bbac022a.zip
gatekeeper-e37b57854fbca14b79fbd33d75848969bbac022a.tar.gz
gatekeeper-e37b57854fbca14b79fbd33d75848969bbac022a.tar.bz2
adding docblocks and method to get current restroctions to Gatekeeper class
-rw-r--r--src/Psecio/Gatekeeper/Gatekeeper.php14
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