public function setCustomMessages(array $messages) { $this->customMessages = array_merge($this->customMessages, $messages); }