original_string: public function addRequirements(array $requirements)
      {
          foreach ($requirements as $key => $regex) {
              $this->requirements[$key] = $this->sanitizeRequirement($key, $regex);
          }
          $this->compiled = null;
  
          return $this;
      }
code: public function addRequirements(array $requirements)
      {
          foreach ($requirements as $key => $regex) {
              $this->requirements[$key] = $this->sanitizeRequirement($key, $regex);
          }
          $this->compiled = null;
  
          return $this;
      }
code_tokens: public function addRequirements ( array $ requirements ) { foreach ( $ requirements as $ key => $ regex ) { $ this -> requirements [ $ key ] = $ this -> sanitizeRequirement ( $ key , $ regex ) ; } $ this -> compiled = null ; return $ this ; }
docstring: Adds requirements.
  
  This method implements a fluent interface.
  
  @param array $requirements The requirements
  
  @return $this
docstring_tokens: Adds requirements .