original_string: public function setPattern($pattern)
      {
          $this->_pattern = (string) $pattern;
          $status         = @preg_match($this->_pattern, "Test");
  
          if (false === $status) {
              // require_once 'Zend/Validate/Exception.php';
              throw new Zend_Validate_Exception("Internal error while using the pattern '$this->_pattern'");
          }
  
          return $this;
      }
code: public function setPattern($pattern)
      {
          $this->_pattern = (string) $pattern;
          $status         = @preg_match($this->_pattern, "Test");
  
          if (false === $status) {
              // require_once 'Zend/Validate/Exception.php';
              throw new Zend_Validate_Exception("Internal error while using the pattern '$this->_pattern'");
          }
  
          return $this;
      }
code_tokens: public function setPattern ( $ pattern ) { $ this -> _pattern = ( string ) $ pattern ; $ status = @ preg_match ( $ this -> _pattern , "Test" ) ; if ( false === $ status ) { // require_once 'Zend/Validate/Exception.php'; throw new Zend_Validate_Exception ( "Internal error while using the pattern '$this->_pattern'" ) ; } return $ this ; }
docstring: Sets the pattern option
  
  @param  string $pattern
  @throws Zend_Validate_Exception if there is a fatal error in pattern matching
  @return Zend_Validate_Regex Provides a fluent interface
docstring_tokens: Sets the pattern option