src/FilterFunnel.php
public function setMessageTemplate($message, $key = null)
    {
        $validator = end($this->chain);
        if (!$validator instanceof ValidatorInterface) {
            throw new \RuntimeException('setMessageTemplate() must be preceeded by addValidator()');
        }
        $validator->setMessageTemplate($message, $key);

        return $this;
    }
public function setMessageTemplate($message, $key = null)
    {
        $validator = end($this->chain);
        if (!$validator instanceof ValidatorInterface) {
            throw new \RuntimeException('setMessageTemplate() must be preceeded by addValidator()');
        }
        $validator->setMessageTemplate($message, $key);

        return $this;
    }
@param string $message
@param mixed  $key

@throws \RuntimeException

@return FilterFunnel