File manager - Edit - /var/www/payraty/hris/vendor/iyzico/iyzipay-php/src/Iyzipay/Model/Mapper/CancelMapper.php
Back
<?php namespace Iyzipay\Model\Mapper; use Iyzipay\Model\Cancel; class CancelMapper extends IyzipayResourceMapper { public static function create($rawResult = null) { return new CancelMapper($rawResult); } public function mapCancelFrom(Cancel $cancel, $jsonObject) { parent::mapResourceFrom($cancel, $jsonObject); if (isset($jsonObject->paymentId)) { $cancel->setPaymentId($jsonObject->paymentId); } if (isset($jsonObject->price)) { $cancel->setPrice($jsonObject->price); } if (isset($jsonObject->currency)) { $cancel->setCurrency($jsonObject->currency); } if (isset($jsonObject->connectorName)) { $cancel->setConnectorName($jsonObject->connectorName); } if (isset($jsonObject->authCode)) { $cancel->setAuthCode($jsonObject->authCode); } return $cancel; } public function mapCancel(Cancel $cancel) { return $this->mapCancelFrom($cancel, $this->jsonObject); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings