/** * @return array */ public function getOutput() { $output = []; foreach ($this->resource->getErrors() as $error) { $output[] = $error->getSerializer()->getOutput(); } return $output; }
/** * @param ErrorCollection $error */ public function setErrors(ErrorCollection $error) { $this->checksForCustomObject(); $this->responseBody->addMember($error->getSerializer()); }
/** * @param ErrorCollection $error */ public function setErrors(ErrorCollection $error) { $this->responseBody->addMember($error->getSerializer()); }