コード例 #1
0
 /**
  * @return array
  */
 public function getOutput()
 {
     $output = [];
     foreach ($this->resource->getErrors() as $error) {
         $output[] = $error->getSerializer()->getOutput();
     }
     return $output;
 }
コード例 #2
0
ファイル: ApiResponse.php プロジェクト: refinery29/piston
 /**
  * @param ErrorCollection $error
  */
 public function setErrors(ErrorCollection $error)
 {
     $this->checksForCustomObject();
     $this->responseBody->addMember($error->getSerializer());
 }
コード例 #3
0
ファイル: ApiResponse.php プロジェクト: settermjd/piston
 /**
  * @param ErrorCollection $error
  */
 public function setErrors(ErrorCollection $error)
 {
     $this->responseBody->addMember($error->getSerializer());
 }