public function setError(array $error = array())
{
foreach ($error as $arrayOfErrorErrorItem) {
// validation for constraint: itemType
if (!$arrayOfErrorErrorItem instanceof \Api\StructType\ApiErrorProject) {
throw new \InvalidArgumentException(sprintf('The Error property can only contain items of \\Api\\StructType\\ApiErrorProject, "%s" given', is_object($arrayOfErrorErrorItem) ? get_class($arrayOfErrorErrorItem) : gettype($arrayOfErrorErrorItem)), __LINE__);
}
}
$this->Error = $error;
return $this;
}