public function setPreMessageTemplate($template = null)
    {
        if (null !== $template) {
            $template = (string) $template;
        }
        $this->abstractOptions['messageTemplates']
                              [self::PRE_MESSAGE_TEMPLATE_KEY] = $template;
        return $this;
    }
public function setPreMessageTemplate($template = null)
    {
        if (null !== $template) {
            $template = (string) $template;
        }
        $this->abstractOptions['messageTemplates']
                              [self::PRE_MESSAGE_TEMPLATE_KEY] = $template;
        return $this;
    }
public function setPreMessageTemplate ( $ template = null ) { if ( null !== $ template ) { $ template = ( string ) $ template ; } $ this -> abstractOptions [ 'messageTemplates' ] [ self :: PRE_MESSAGE_TEMPLATE_KEY ] = $ template ; return $ this ; }
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
Sets template of validation failure message to be inserted at beginning of validation failure message map .