original_string: public function setPatterns(array $patterns)
      {
          $patternValues = implode("", $patterns);
          if (mb_strlen($patternValues) < strlen($patternValues)) {
              $this->options['multibytePattern'] = true;
          }
          $this->options = array_merge($this->options, $patterns);
  
          return $this;
      }
code: public function setPatterns(array $patterns)
      {
          $patternValues = implode("", $patterns);
          if (mb_strlen($patternValues) < strlen($patternValues)) {
              $this->options['multibytePattern'] = true;
          }
          $this->options = array_merge($this->options, $patterns);
  
          return $this;
      }
code_tokens: public function setPatterns ( array $ patterns ) { $ patternValues = implode ( "" , $ patterns ) ; if ( mb_strlen ( $ patternValues ) < strlen ( $ patternValues ) ) { $ this -> options [ 'multibytePattern' ] = true ; } $ this -> options = array_merge ( $ this -> options , $ patterns ) ; return $ this ; }
docstring: Set regexp patterns for routing parameters
  
  If any of your patterns contain multibyte values, the `multibytePattern`
  mode will be enabled.
  
  @param array $patterns The patterns to apply to routing elements
  @return $this
docstring_tokens: Set regexp patterns for routing parameters