public function removeTemplateMessage($singular) { $id = Message::encodeMessageId($singular); unset($this->templateMessages[$id]); return $this; }
public function removeMessage(\Message $message) { $this->messages->removeElement($message); unset($this->messageIds[\Helpers\Message::encodeMessageId($message->getId())]); return $this; }