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