<?php

namespace NoahVet\Reef\Jane\Model;

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

    /**
     * @var float
     */
    protected $lng;

    /**
     * @var float
     */
    protected $lat;

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

    public function getLng(): float
    {
        return $this->lng;
    }

    public function setLng(float $lng): self
    {
        $this->initialized['lng'] = true;
        $this->lng = $lng;

        return $this;
    }

    public function getLat(): float
    {
        return $this->lat;
    }

    public function setLat(float $lat): self
    {
        $this->initialized['lat'] = true;
        $this->lat = $lat;

        return $this;
    }
}
