<?php

declare(strict_types=1);

namespace NoahVet\Reef\Jane\Model;

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

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

    /**
     * Id - Response Model.
     *
     * @var IdResponse
     */
    protected $user;

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

    public function getActivatedDate(): \DateTime
    {
        return $this->activatedDate;
    }

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

        return $this;
    }

    /**
     * Id - Response Model.
     */
    public function getUser(): IdResponse
    {
        return $this->user;
    }

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

        return $this;
    }
}
