D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
test
/
app
/
Libs
/
OnlinePayments
/
Sdk
/
Domain
/
Filename :
PaymentAccountOnFile.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 PaymentAccountOnFile extends DataObject { /** * @var string|null */ public ?string $createDate = null; /** * @var int|null */ public ?int $numberOfCardOnFileCreationAttemptsLast24Hours = null; /** * @return string|null */ public function getCreateDate(): ?string { return $this->createDate; } /** * @param string|null $value */ public function setCreateDate(?string $value): void { $this->createDate = $value; } /** * @return int|null */ public function getNumberOfCardOnFileCreationAttemptsLast24Hours(): ?int { return $this->numberOfCardOnFileCreationAttemptsLast24Hours; } /** * @param int|null $value */ public function setNumberOfCardOnFileCreationAttemptsLast24Hours(?int $value): void { $this->numberOfCardOnFileCreationAttemptsLast24Hours = $value; } /** * @return object */ public function toObject(): object { $object = parent::toObject(); if (!is_null($this->createDate)) { $object->createDate = $this->createDate; } if (!is_null($this->numberOfCardOnFileCreationAttemptsLast24Hours)) { $object->numberOfCardOnFileCreationAttemptsLast24Hours = $this->numberOfCardOnFileCreationAttemptsLast24Hours; } return $object; } /** * @param object $object * @return $this * @throws UnexpectedValueException */ public function fromObject(object $object): PaymentAccountOnFile { parent::fromObject($object); if (property_exists($object, 'createDate')) { $this->createDate = $object->createDate; } if (property_exists($object, 'numberOfCardOnFileCreationAttemptsLast24Hours')) { $this->numberOfCardOnFileCreationAttemptsLast24Hours = $object->numberOfCardOnFileCreationAttemptsLast24Hours; } return $this; } }