Method | Description | |
---|---|---|
__call ( string $name, array $args ) : |
Magic method to catch policy additions on the current instance | |
getChecks ( ) : array | Get the full list of current checks on the policy | |
instance ( ) : |
Static method to return a new Policy instance | |
load ( string $dslString ) | Load a policy from a string DSL See the README for formatting | |
passwordEquals ( string $password ) : |
Catch the call to evaluate the password |
Method | Description | |
---|---|---|
addCheck ( string $name, string $type, array $args ) | Add a new check to the set |
Method | Description | |
---|---|---|
canCheck ( string $type, string $name, array $args ) | Add a "can" check to the set | |
cannotCheck ( string $type, string $name, array $args ) | Add a "cannot" check to the set | |
check ( string $matchType, string $type, string $name, array $args ) | Add a new check to the current set for the policy | |
hasCheck ( string $type, string $name, array $args ) | Add a "has" check to the set | |
notCheck ( string $type, string $name, array $args ) | Add a "not" check to the set |
public static instance ( ) : |
||
return |
public passwordEquals ( string $password ) : |
||
$password | string | Plain-text password input |
return | instance |