Psecio\PropAuth\PolicySet::add PHP Method

add() public method

Add a new policy to the current set with the given key name
public add ( string $policyName, Policy $policy )
$policyName string Policy name (key)
$policy Policy Policy object instance
    public function add($policyName, \Psecio\PropAuth\Policy $policy)
    {
        $this->policies[$policyName] = $policy;
        return $this;
    }