Exemplo n.º 1
0
 public function mapResourceFrom(IyzipayResource $resource, $jsonObject)
 {
     if (isset($jsonObject->status)) {
         $resource->setStatus($jsonObject->status);
     }
     if (isset($jsonObject->conversationId)) {
         $resource->setConversationId($jsonObject->conversationId);
     }
     if (isset($jsonObject->errorCode)) {
         $resource->setErrorCode($jsonObject->errorCode);
     }
     if (isset($jsonObject->errorMessage)) {
         $resource->setErrorMessage($jsonObject->errorMessage);
     }
     if (isset($jsonObject->errorGroup)) {
         $resource->setErrorGroup($jsonObject->errorGroup);
     }
     if (isset($jsonObject->locale)) {
         $resource->setLocale($jsonObject->locale);
     }
     if (isset($jsonObject->systemTime)) {
         $resource->setSystemTime($jsonObject->systemTime);
     }
     if (isset($this->rawResult)) {
         $resource->setRawResult($this->rawResult);
     }
     return $resource;
 }