D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
test
/
app
/
Libs
/
OnlinePayments
/
Sdk
/
Domain
/
Filename :
PaymentLinksResponse.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 PaymentLinksResponse extends DataObject { /** * @var PaymentLinkResponse[]|null */ public ?array $PaymentLinks = null; /** * @return PaymentLinkResponse[]|null */ public function getPaymentLinks(): ?array { return $this->PaymentLinks; } /** * @param PaymentLinkResponse[]|null $value */ public function setPaymentLinks(?array $value): void { $this->PaymentLinks = $value; } /** * @return object */ public function toObject(): object { $object = parent::toObject(); if (!is_null($this->PaymentLinks)) { $object->PaymentLinks = []; foreach ($this->PaymentLinks as $element) { if (!is_null($element)) { $object->PaymentLinks[] = $element->toObject(); } } } return $object; } /** * @param object $object * @return $this * @throws UnexpectedValueException */ public function fromObject(object $object): PaymentLinksResponse { parent::fromObject($object); if (property_exists($object, 'PaymentLinks')) { if (!is_array($object->PaymentLinks) && !is_object($object->PaymentLinks)) { throw new UnexpectedValueException('value \'' . print_r($object->PaymentLinks, true) . '\' is not an array or object'); } $this->PaymentLinks = []; foreach ($object->PaymentLinks as $element) { $value = new PaymentLinkResponse(); $this->PaymentLinks[] = $value->fromObject($element); } } return $this; } }