<?php

/*
 * This file was automatically generated.
 */
namespace Syde\Vendor\Cawl\OnlinePayments\Sdk\Domain;

use UnexpectedValueException;
/**
 * @package OnlinePayments\Sdk\Domain
 */
class DirectoryEntry extends DataObject
{
    /**
     * @var string|null
     */
    public ?string $issuerId = null;
    /**
     * @var string|null
     */
    public ?string $issuerList = null;
    /**
     * @var string|null
     */
    public ?string $issuerName = null;
    /**
     * @return string|null
     */
    public function getIssuerId() : ?string
    {
        return $this->issuerId;
    }
    /**
     * @param string|null $value
     */
    public function setIssuerId(?string $value) : void
    {
        $this->issuerId = $value;
    }
    /**
     * @return string|null
     */
    public function getIssuerList() : ?string
    {
        return $this->issuerList;
    }
    /**
     * @param string|null $value
     */
    public function setIssuerList(?string $value) : void
    {
        $this->issuerList = $value;
    }
    /**
     * @return string|null
     */
    public function getIssuerName() : ?string
    {
        return $this->issuerName;
    }
    /**
     * @param string|null $value
     */
    public function setIssuerName(?string $value) : void
    {
        $this->issuerName = $value;
    }
    /**
     * @return object
     */
    public function toObject() : object
    {
        $object = parent::toObject();
        if (!\is_null($this->issuerId)) {
            $object->issuerId = $this->issuerId;
        }
        if (!\is_null($this->issuerList)) {
            $object->issuerList = $this->issuerList;
        }
        if (!\is_null($this->issuerName)) {
            $object->issuerName = $this->issuerName;
        }
        return $object;
    }
    /**
     * @param object $object
     * @return $this
     * @throws UnexpectedValueException
     */
    public function fromObject(object $object) : DirectoryEntry
    {
        parent::fromObject($object);
        if (\property_exists($object, 'issuerId')) {
            $this->issuerId = $object->issuerId;
        }
        if (\property_exists($object, 'issuerList')) {
            $this->issuerList = $object->issuerList;
        }
        if (\property_exists($object, 'issuerName')) {
            $this->issuerName = $object->issuerName;
        }
        return $this;
    }
}
