<?php

namespace NoahVet\Reef\Jane\Model;

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

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

    /**
     * If the phone number is validated, the date of validation.
     *
     * @var \DateTime|null
     */
    protected $validated;

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

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

    public function getPhoneNumber(): string
    {
        return $this->phoneNumber;
    }

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

        return $this;
    }

    /**
     * If the phone number is validated, the date of validation.
     */
    public function getValidated(): ?\DateTime
    {
        return $this->validated;
    }

    /**
     * If the phone number is validated, the date of validation.
     */
    public function setValidated(?\DateTime $validated): self
    {
        $this->initialized['validated'] = true;
        $this->validated = $validated;

        return $this;
    }

    public function getValidationMethod(): ?string
    {
        return $this->validationMethod;
    }

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

        return $this;
    }
}
