staticmaplite/src/Element/Marker/Marker.php

33 lines
625 B
PHP
Raw Normal View History

2017-05-26 15:11:00 +00:00
<?php
2017-05-26 15:12:11 +00:00
namespace StaticMapLite\Element\Marker;
2017-05-26 15:11:00 +00:00
class Marker
{
protected $latitude;
protected $longitude;
protected $markerType;
public function __construct(string $markerType, float $latitude, float $longitude)
{
$this->markerType = $markerType;
$this->latitude = $latitude;
$this->longitude = $longitude;
}
public function getMarkerType(): string
{
return $this->markerType;
}
public function getLatitude(): float
{
return $this->latitude;
}
public function getLongitude(): float
{
return $this->longitude;
}
}