<?php

declare(strict_types=1);

namespace NoahVet\Reef\Jane\Model;

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

    /**
     * @var int
     */
    protected $hour;

    /**
     * @var int
     */
    protected $minute;

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

    public function getHour(): int
    {
        return $this->hour;
    }

    public function setHour(int $hour): self
    {
        $this->initialized['hour'] = true;
        $this->hour = $hour;

        return $this;
    }

    public function getMinute(): int
    {
        return $this->minute;
    }

    public function setMinute(int $minute): self
    {
        $this->initialized['minute'] = true;
        $this->minute = $minute;

        return $this;
    }
}
