Beispiel #1
0
 /**
  * @param CustomResult $customResult
  *
  * @throws \Exception
  */
 public function setCustomResult(CustomResult $customResult)
 {
     $this->checksForCustomObject();
     if (count($this->responseBody->getMembers()) > 0) {
         throw new \Exception(self::ERROR_CANNOT_USE_CUSTOM_AND_OTHER_RESOURCES);
     }
     $this->responseBody->addMember($customResult->getSerializer());
     $this->isCustom = true;
 }
Beispiel #2
0
 /**
  * @return array
  */
 public function getOutput()
 {
     return $this->result->getData();
 }