<?php

declare(strict_types=1);

namespace NoahVet\Reef\Jane\Model;

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

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

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

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

    /**
     * @var int
     */
    protected $emailTemplateNumber;

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

    /**
     * Nullable Id - Response Model.
     *
     * @var NullableIdResponse|null
     */
    protected $veterinaryGroupUser;

    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 getEmailTemplateNumber(): int
    {
        return $this->emailTemplateNumber;
    }

    public function setEmailTemplateNumber(int $emailTemplateNumber): self
    {
        $this->initialized['emailTemplateNumber'] = true;
        $this->emailTemplateNumber = $emailTemplateNumber;

        return $this;
    }

    public function getStatus(): string
    {
        return $this->status;
    }

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

        return $this;
    }

    /**
     * Nullable Id - Response Model.
     */
    public function getVeterinaryGroupUser(): ?NullableIdResponse
    {
        return $this->veterinaryGroupUser;
    }

    /**
     * Nullable Id - Response Model.
     */
    public function setVeterinaryGroupUser(?NullableIdResponse $veterinaryGroupUser): self
    {
        $this->initialized['veterinaryGroupUser'] = true;
        $this->veterinaryGroupUser = $veterinaryGroupUser;

        return $this;
    }
}
