public function removeDetail($errorDetails) { return $this->setDetails(array_diff($this->getDetails(), array($errorDetails))); }