D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
test
/
app
/
Libs
/
OnlinePayments
/
Sdk
/
Domain
/
Filename :
DecryptedPaymentData.php
back
Copy
<?php /* * This file was automatically generated. */ namespace App\Libs\OnlinePayments\Sdk\Domain; use App\Libs\Sdk\Domain\DataObject; use UnexpectedValueException; /** * @package OnlinePayments\Sdk\Domain */ class DecryptedPaymentData extends DataObject { /** * @var string|null */ public ?string $cardholderName = null; /** * @var string|null */ public ?string $cryptogram = null; /** * @var string|null */ public ?string $dpan = null; /** * @var int|null */ public ?int $eci = null; /** * @var string|null */ public ?string $expiryDate = null; /** * @return string|null */ public function getCardholderName(): ?string { return $this->cardholderName; } /** * @param string|null $value */ public function setCardholderName(?string $value): void { $this->cardholderName = $value; } /** * @return string|null */ public function getCryptogram(): ?string { return $this->cryptogram; } /** * @param string|null $value */ public function setCryptogram(?string $value): void { $this->cryptogram = $value; } /** * @return string|null */ public function getDpan(): ?string { return $this->dpan; } /** * @param string|null $value */ public function setDpan(?string $value): void { $this->dpan = $value; } /** * @return int|null */ public function getEci(): ?int { return $this->eci; } /** * @param int|null $value */ public function setEci(?int $value): void { $this->eci = $value; } /** * @return string|null */ public function getExpiryDate(): ?string { return $this->expiryDate; } /** * @param string|null $value */ public function setExpiryDate(?string $value): void { $this->expiryDate = $value; } /** * @return object */ public function toObject(): object { $object = parent::toObject(); if (!is_null($this->cardholderName)) { $object->cardholderName = $this->cardholderName; } if (!is_null($this->cryptogram)) { $object->cryptogram = $this->cryptogram; } if (!is_null($this->dpan)) { $object->dpan = $this->dpan; } if (!is_null($this->eci)) { $object->eci = $this->eci; } if (!is_null($this->expiryDate)) { $object->expiryDate = $this->expiryDate; } return $object; } /** * @param object $object * @return $this * @throws UnexpectedValueException */ public function fromObject(object $object): DecryptedPaymentData { parent::fromObject($object); if (property_exists($object, 'cardholderName')) { $this->cardholderName = $object->cardholderName; } if (property_exists($object, 'cryptogram')) { $this->cryptogram = $object->cryptogram; } if (property_exists($object, 'dpan')) { $this->dpan = $object->dpan; } if (property_exists($object, 'eci')) { $this->eci = $object->eci; } if (property_exists($object, 'expiryDate')) { $this->expiryDate = $object->expiryDate; } return $this; } }