Sets an array of messages on the checkout form
@param string $key
@param string|array $message
503725
protected function setMessageFormCheckout($key, $message)
    {
        gplcart_array_set($this->data_form['messages'], $key, $this->format($message));
    }
854962
protected function isUnique($key, $message)
    {
        $messages = (array) $this->messages;

        return !isset($messages[$key]) || !in_array($message, $messages[$key], true);
    }
726102
public function setTranslation($key, $value, $language) {
		$messageFile = $this->getMessageFile($language);
		$messageFile->setMessage($key, $value);
		$messageFile->save();

		$this->messages[$language][$key] = $value;
	}
771451
public function isNot($checkFunc, $key, $message)
    {
        if (is_array($key)) {
            foreach ($key as $name) {
                $this->isNot($checkFunc, $name, $message);
            }
        } else {
            if (isset($this->scope[$key]) && call_user_func($checkFunc, $this->scope[$key])) {
                $this->errors[$key] = sprintf($message, $key);
            }
        }

        return $this;
    }
652386
public function clearMessage($key)
    {
        if (isset($this->storage[$this->storageKey][$key])) {
            unset($this->storage[$this->storageKey][$key]);
        }

        if (isset($this->fromPrevious[$key])) {
            unset($this->fromPrevious[$key]);
        }

        if (isset($this->forNow[$key])) {
            unset($this->forNow[$key]);
        }
    }
1153284
protected function setMessage($message, array $parameters = [])
    {
        $message = sprintf(
            "%s: %s.",
            (new \ReflectionClass($this))->getShortName(),
            $message
        );

        $parameters = array_map([$this->getDumper(), "dump"], $parameters);

        $this->message = call_user_func_array(
            "sprintf",
            array_merge([$message], $parameters)
        );
    }
950340
public function setMessage($message)
    {
        if ( ! is_null($message)) $message = (string) $message;

        $this->setAttribute('message', $message);

        return $this;
    }
1349831
public function setTranslationsForKey(array $messages, $key)
    {
        foreach ($messages as $language => $value) {
            $this->setTranslation($key, $value, $language);
        }
    }
133205
public function setTranslationsForLanguage(array $messages, $language)
    {
        foreach ($messages as $key => $value) {
            $this->setTranslation($key, $value, $language);
        }
    }
187493
public function add($key, $message)
	{
		if ($this->unique($key, $message)) $this->messages[$key][] = $message;
	}
1284498
protected function addMessage($message) {
		$hash = crc32(json_encode(func_get_args()));
		
		if (isset($this->_messages[$hash])) {
			return;
		}
		
		if (func_num_args() > 1) {
			$this->_messages[$hash] = call_user_func_array('sprintf', func_get_args());
		} else {
			$this->_messages[$hash] = (string) $message;
		}
	}
453942
public function addMessage($message)
    {
        collect((array) $message)->each(function ($item) {
            collect($item)->flatten()->each(function ($flattened) {
                $this->messageList->push($flattened);
            });
        });
    }
150198
public function deleteMessage($key) {
		if(isset($this->msg[$key])) {
			unset($this->msg[$key]);
		}
		if(!$this->msg) {
			$this->deleteFile();
		}
	}
1146418
protected function setGlobalToAndRemoveCcAndBcc($message)
    {
        $message->to($this->to['address'], $this->to['name'], true);
        $message->cc(null, null, true);
        $message->bcc(null, null, true);
    }
475642
public function addMessage($key, $message)
    {
        // Create Array for this key
        if (!isset($this->storage[$this->storageKey][$key])) {
            $this->storage[$this->storageKey][$key] = [];
        }

        // Push onto the array
        $this->storage[$this->storageKey][$key][] = $message;
    }
921835
public function setMessages($messages)
	{
		if (!is_array($messages))
		{
			throw new InvalidArgumentException(sprintf(
				'Messages must be an array. Type of "%s" passed.',
				gettype($messages)
			));
		}

		$this->_messages = $messages;

		return $this;
	}
1020550
public function setMessage($message, $priority)
    {
        $this->message = (string) $message;
        $this->priority = (int) $priority;
    }