D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
tattooscyy
/
test
/
app
/
Libs
/
OnlinePayments
/
Sdk
/
Domain
/
Filename :
MandateAddress.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 MandateAddress extends DataObject { /** * @var string|null */ public ?string $city = null; /** * @var string|null */ public ?string $countryCode = null; /** * @var string|null */ public ?string $houseNumber = null; /** * @var string|null */ public ?string $street = null; /** * @var string|null */ public ?string $zip = null; /** * @return string|null */ public function getCity(): ?string { return $this->city; } /** * @param string|null $value */ public function setCity(?string $value): void { $this->city = $value; } /** * @return string|null */ public function getCountryCode(): ?string { return $this->countryCode; } /** * @param string|null $value */ public function setCountryCode(?string $value): void { $this->countryCode = $value; } /** * @return string|null */ public function getHouseNumber(): ?string { return $this->houseNumber; } /** * @param string|null $value */ public function setHouseNumber(?string $value): void { $this->houseNumber = $value; } /** * @return string|null */ public function getStreet(): ?string { return $this->street; } /** * @param string|null $value */ public function setStreet(?string $value): void { $this->street = $value; } /** * @return string|null */ public function getZip(): ?string { return $this->zip; } /** * @param string|null $value */ public function setZip(?string $value): void { $this->zip = $value; } /** * @return object */ public function toObject(): object { $object = parent::toObject(); if (!is_null($this->city)) { $object->city = $this->city; } if (!is_null($this->countryCode)) { $object->countryCode = $this->countryCode; } if (!is_null($this->houseNumber)) { $object->houseNumber = $this->houseNumber; } if (!is_null($this->street)) { $object->street = $this->street; } if (!is_null($this->zip)) { $object->zip = $this->zip; } return $object; } /** * @param object $object * @return $this * @throws UnexpectedValueException */ public function fromObject(object $object): MandateAddress { parent::fromObject($object); if (property_exists($object, 'city')) { $this->city = $object->city; } if (property_exists($object, 'countryCode')) { $this->countryCode = $object->countryCode; } if (property_exists($object, 'houseNumber')) { $this->houseNumber = $object->houseNumber; } if (property_exists($object, 'street')) { $this->street = $object->street; } if (property_exists($object, 'zip')) { $this->zip = $object->zip; } return $this; } }