<?php

namespace Myvetshop\Module\Clinique\Generated\Jane\Model;

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

    public function isInitialized($property): bool
    {
        return array_key_exists($property, $this->initialized);
    }
    /**
     * @var int
     */
    protected $id;
    /**
     * @var string
     */
    protected $name;
    /**
     * @var int
     */
    protected $idParent;
    /**
     * @var int
     */
    protected $levelDepth;
    /**
     * @var bool
     */
    protected $active;

    /**
     * @return int
     */
    public function getId(): int
    {
        return $this->id;
    }

    /**
     * @param int $id
     *
     * @return self
     */
    public function setId(int $id): self
    {
        $this->initialized['id'] = true;
        $this->id = $id;

        return $this;
    }

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

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

        return $this;
    }

    /**
     * @return int
     */
    public function getIdParent(): int
    {
        return $this->idParent;
    }

    /**
     * @param int $idParent
     *
     * @return self
     */
    public function setIdParent(int $idParent): self
    {
        $this->initialized['idParent'] = true;
        $this->idParent = $idParent;

        return $this;
    }

    /**
     * @return int
     */
    public function getLevelDepth(): int
    {
        return $this->levelDepth;
    }

    /**
     * @param int $levelDepth
     *
     * @return self
     */
    public function setLevelDepth(int $levelDepth): self
    {
        $this->initialized['levelDepth'] = true;
        $this->levelDepth = $levelDepth;

        return $this;
    }

    /**
     * @return bool
     */
    public function getActive(): bool
    {
        return $this->active;
    }

    /**
     * @param bool $active
     *
     * @return self
     */
    public function setActive(bool $active): self
    {
        $this->initialized['active'] = true;
        $this->active = $active;

        return $this;
    }
}
