D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
test
/
app
/
Libs
/
OnlinePayments
/
Sdk
/
Domain
/
Filename :
PaymentProduct130SpecificInput.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 PaymentProduct130SpecificInput extends DataObject { /** * @var PaymentProduct130SpecificThreeDSecure|null */ public ?PaymentProduct130SpecificThreeDSecure $threeDSecure = null; /** * @return PaymentProduct130SpecificThreeDSecure|null */ public function getThreeDSecure(): ?PaymentProduct130SpecificThreeDSecure { return $this->threeDSecure; } /** * @param PaymentProduct130SpecificThreeDSecure|null $value */ public function setThreeDSecure(?PaymentProduct130SpecificThreeDSecure $value): void { $this->threeDSecure = $value; } /** * @return object */ public function toObject(): object { $object = parent::toObject(); if (!is_null($this->threeDSecure)) { $object->threeDSecure = $this->threeDSecure->toObject(); } return $object; } /** * @param object $object * @return $this * @throws UnexpectedValueException */ public function fromObject(object $object): PaymentProduct130SpecificInput { parent::fromObject($object); if (property_exists($object, 'threeDSecure')) { if (!is_object($object->threeDSecure)) { throw new UnexpectedValueException('value \'' . print_r($object->threeDSecure, true) . '\' is not an object'); } $value = new PaymentProduct130SpecificThreeDSecure(); $this->threeDSecure = $value->fromObject($object->threeDSecure); } return $this; } }