<?php

declare(strict_types=1);

namespace NoahVet\Reef\Jane\Model;

class MandateResponse extends \ArrayObject
{
    /**
     * @var array
     */
    protected $initialized = [];

    /**
     * @var string
     */
    protected $id;

    /**
     * @var \DateTime
     */
    protected $createdDate;

    /**
     * @var \DateTime
     */
    protected $updatedDate;

    /**
     * @var string
     */
    protected $accountingCodePrefix;

    /**
     * @var string
     */
    protected $entitled;

    /**
     * @var string
     */
    protected $ics;

    /**
     * @var string
     */
    protected $prefix;

    public function isInitialized($property): bool
    {
        return \array_key_exists($property, $this->initialized);
    }

    public function getId(): string
    {
        return $this->id;
    }

    public function setId(string $id): self
    {
        $this->initialized['id'] = true;
        $this->id = $id;

        return $this;
    }

    public function getCreatedDate(): \DateTime
    {
        return $this->createdDate;
    }

    public function setCreatedDate(\DateTime $createdDate): self
    {
        $this->initialized['createdDate'] = true;
        $this->createdDate = $createdDate;

        return $this;
    }

    public function getUpdatedDate(): \DateTime
    {
        return $this->updatedDate;
    }

    public function setUpdatedDate(\DateTime $updatedDate): self
    {
        $this->initialized['updatedDate'] = true;
        $this->updatedDate = $updatedDate;

        return $this;
    }

    public function getAccountingCodePrefix(): string
    {
        return $this->accountingCodePrefix;
    }

    public function setAccountingCodePrefix(string $accountingCodePrefix): self
    {
        $this->initialized['accountingCodePrefix'] = true;
        $this->accountingCodePrefix = $accountingCodePrefix;

        return $this;
    }

    public function getEntitled(): string
    {
        return $this->entitled;
    }

    public function setEntitled(string $entitled): self
    {
        $this->initialized['entitled'] = true;
        $this->entitled = $entitled;

        return $this;
    }

    public function getIcs(): string
    {
        return $this->ics;
    }

    public function setIcs(string $ics): self
    {
        $this->initialized['ics'] = true;
        $this->ics = $ics;

        return $this;
    }

    public function getPrefix(): string
    {
        return $this->prefix;
    }

    public function setPrefix(string $prefix): self
    {
        $this->initialized['prefix'] = true;
        $this->prefix = $prefix;

        return $this;
    }
}
