original_string: public function setPreMessageTemplate($template = null)
      {
          if (null !== $template) {
              $template = (string) $template;
          }
          $this->abstractOptions['messageTemplates']
                                [self::PRE_MESSAGE_TEMPLATE_KEY] = $template;
          return $this;
      }
code: public function setPreMessageTemplate($template = null)
      {
          if (null !== $template) {
              $template = (string) $template;
          }
          $this->abstractOptions['messageTemplates']
                                [self::PRE_MESSAGE_TEMPLATE_KEY] = $template;
          return $this;
      }
code_tokens: public function setPreMessageTemplate ( $ template = null ) { if ( null !== $ template ) { $ template = ( string ) $ template ; } $ this -> abstractOptions [ 'messageTemplates' ] [ self :: PRE_MESSAGE_TEMPLATE_KEY ] = $ template ; return $ this ; }
docstring: Sets template of validation failure message to be inserted at beginning
  of validation failure message map.
  
  Use null to specify no message should be inserted.
  
  @param string|null $template
  @return self
docstring_tokens: Sets template of validation failure message to be inserted at beginning of validation failure message map .