src/Abstracts/AuthenticationMiddleware.php
public function setRules(array $rules) {
        /* Clear the stack */
        unset($this->rules);
        $this->rules = new \SplStack;

        /* Add the rules */
        foreach ($rules as $callable) {
            $this->addRule($callable);
        }

        return $this;
    }
public function setRules(array $rules) {
        /* Clear the stack */
        unset($this->rules);
        $this->rules = new \SplStack;

        /* Add the rules */
        foreach ($rules as $callable) {
            $this->addRule($callable);
        }

        return $this;
    }
public function setRules ( array $ rules ) { /* Clear the stack */ unset ( $ this -> rules ) ; $ this -> rules = new \ SplStack ; /* Add the rules */ foreach ( $ rules as $ callable ) { $ this -> addRule ( $ callable ) ; } return $ this ; }
Set all rules in the stack

@return self
Set all rules in the stack