<?php

declare(strict_types=1);

namespace NoahVet\Reef\Jane\Model;

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

    /**
     * @var list<V1PetBreedsPostBodyTranslationsFrFRAliasesItem>
     */
    protected $aliases;

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

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

    /**
     * @return list<V1PetBreedsPostBodyTranslationsFrFRAliasesItem>
     */
    public function getAliases(): array
    {
        return $this->aliases;
    }

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

        return $this;
    }

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

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

        return $this;
    }
}
