public function addRequirements(array $requirements)
    {
        foreach ($requirements as $key => $regex) {
            $this->requirements[$key] = $this->sanitizeRequirement($key, $regex);
        }
        $this->compiled = null;

        return $this;
    }
public function addRequirements(array $requirements)
    {
        foreach ($requirements as $key => $regex) {
            $this->requirements[$key] = $this->sanitizeRequirement($key, $regex);
        }
        $this->compiled = null;

        return $this;
    }
public function addRequirements ( array $ requirements ) { foreach ( $ requirements as $ key => $ regex ) { $ this -> requirements [ $ key ] = $ this -> sanitizeRequirement ( $ key , $ regex ) ; } $ this -> compiled = null ; return $ this ; }
Adds requirements.

This method implements a fluent interface.

@param array $requirements The requirements

@return $this
Adds requirements .