public addDetail ( |
||
$errorDetails |
public function addDetail($errorDetails)
{
if (!$this->getDetails()) {
return $this->setDetails(array($errorDetails));
} else {
return $this->setDetails(array_merge($this->getDetails(), array($errorDetails)));
}
}