original_string: public function setPattern($pattern)
      {
          if (null === $pattern) {
              $pattern = $this->getDefaultPattern();
          }
  
          $this->pattern = $pattern;
  
          return true;
      }
code: public function setPattern($pattern)
      {
          if (null === $pattern) {
              $pattern = $this->getDefaultPattern();
          }
  
          $this->pattern = $pattern;
  
          return true;
      }
code_tokens: public function setPattern ( $ pattern ) { if ( null === $ pattern ) { $ pattern = $ this -> getDefaultPattern ( ) ; } $ this -> pattern = $ pattern ; return true ; }
docstring: Set the formatter's pattern.
  
  @param string|null $pattern A pattern string in conformance with the ICU IntlDateFormatter documentation
  
  @return bool true on success or false on failure
  
  @see http://www.php.net/manual/en/intldateformatter.setpattern.php
  @see http://userguide.icu-project.org/formatparse/datetime
docstring_tokens: Set the formatter s pattern .