public function addWarnings(array $warnings) { $this->warnings = array_merge($this->warnings, $warnings); }