<?php

declare(strict_types=1);

namespace NoahVet\Reef\Jane\Model;

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

    /**
     * @var \DateTime|null
     */
    protected $birthDate;

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

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

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

    /**
     * Id - Common Request Model.
     *
     * @var V1PetGhostProfilesPostBodyPet
     */
    protected $pet;

    /**
     * Nullable Id - Common Request Model.
     *
     * @var V1PetGhostProfilesPostBodyPetBreed|null
     */
    protected $petBreed;

    /**
     * Nullable Id - Common Request Model.
     *
     * @var V1PetGhostProfilesPostBodyProfilePicture|null
     */
    protected $profilePicture;

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

    public function getBirthDate(): ?\DateTime
    {
        return $this->birthDate;
    }

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

        return $this;
    }

    public function getFreePetBreed(): ?string
    {
        return $this->freePetBreed;
    }

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

        return $this;
    }

    public function getGender(): ?string
    {
        return $this->gender;
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Id - Common Request Model.
     */
    public function getPet(): V1PetGhostProfilesPostBodyPet
    {
        return $this->pet;
    }

    /**
     * Id - Common Request Model.
     */
    public function setPet(V1PetGhostProfilesPostBodyPet $pet): self
    {
        $this->initialized['pet'] = true;
        $this->pet = $pet;

        return $this;
    }

    /**
     * Nullable Id - Common Request Model.
     */
    public function getPetBreed(): ?V1PetGhostProfilesPostBodyPetBreed
    {
        return $this->petBreed;
    }

    /**
     * Nullable Id - Common Request Model.
     */
    public function setPetBreed(?V1PetGhostProfilesPostBodyPetBreed $petBreed): self
    {
        $this->initialized['petBreed'] = true;
        $this->petBreed = $petBreed;

        return $this;
    }

    /**
     * Nullable Id - Common Request Model.
     */
    public function getProfilePicture(): ?V1PetGhostProfilesPostBodyProfilePicture
    {
        return $this->profilePicture;
    }

    /**
     * Nullable Id - Common Request Model.
     */
    public function setProfilePicture(?V1PetGhostProfilesPostBodyProfilePicture $profilePicture): self
    {
        $this->initialized['profilePicture'] = true;
        $this->profilePicture = $profilePicture;

        return $this;
    }
}
