<?php

declare(strict_types=1);

namespace NoahVet\Reef\Jane\Model;

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

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

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

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

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

    /**
     * @var bool
     */
    protected $isAnonymous;

    /**
     * @var list<V1PetsIdPatchResponse200MicrochipsItem>
     */
    protected $microchips;

    /**
     * @var string|null
     */
    protected $name;

    /**
     * @var string|null
     */
    protected $passportNumber;

    /**
     * @var V1PetsIdPatchResponse200Tattoo|null
     */
    protected $tattoo;

    /**
     * Id - Response Model.
     *
     * @var V1PetsIdPatchResponse200Specie
     */
    protected $specie;

    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 getCode(): string
    {
        return $this->code;
    }

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

        return $this;
    }

    public function getIsAnonymous(): bool
    {
        return $this->isAnonymous;
    }

    public function setIsAnonymous(bool $isAnonymous): self
    {
        $this->initialized['isAnonymous'] = true;
        $this->isAnonymous = $isAnonymous;

        return $this;
    }

    /**
     * @return list<V1PetsIdPatchResponse200MicrochipsItem>
     */
    public function getMicrochips(): array
    {
        return $this->microchips;
    }

    /**
     * @param list<V1PetsIdPatchResponse200MicrochipsItem> $microchips
     */
    public function setMicrochips(array $microchips): self
    {
        $this->initialized['microchips'] = true;
        $this->microchips = $microchips;

        return $this;
    }

    public function getName(): ?string
    {
        return $this->name;
    }

    public function setName(?string $name): self
    {
        $this->initialized['name'] = true;
        $this->name = $name;

        return $this;
    }

    public function getPassportNumber(): ?string
    {
        return $this->passportNumber;
    }

    public function setPassportNumber(?string $passportNumber): self
    {
        $this->initialized['passportNumber'] = true;
        $this->passportNumber = $passportNumber;

        return $this;
    }

    public function getTattoo(): ?V1PetsIdPatchResponse200Tattoo
    {
        return $this->tattoo;
    }

    public function setTattoo(?V1PetsIdPatchResponse200Tattoo $tattoo): self
    {
        $this->initialized['tattoo'] = true;
        $this->tattoo = $tattoo;

        return $this;
    }

    /**
     * Id - Response Model.
     */
    public function getSpecie(): V1PetsIdPatchResponse200Specie
    {
        return $this->specie;
    }

    /**
     * Id - Response Model.
     */
    public function setSpecie(V1PetsIdPatchResponse200Specie $specie): self
    {
        $this->initialized['specie'] = true;
        $this->specie = $specie;

        return $this;
    }
}
