__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace AmeliaBooking\Domain\ValueObjects;
use AmeliaBooking\Domain\Common\Exceptions\InvalidArgumentException;
/**
* Class GeoTag
*
* @package AmeliaBooking\Domain\ValueObjects
*/
final class GeoTag
{
/**
* @var float
*/
private $latitude;
/**
* @var float
*/
private $longitude;
/**
* GeoTag constructor.
*
* @param $latitude
* @param $longitude
*
* @throws InvalidArgumentException
*/
public function __construct($latitude, $longitude)
{
if (empty($latitude)) {
throw new InvalidArgumentException("Latitude can't be empty");
}
$this->latitude = (float)$latitude;
if (empty($longitude)) {
throw new InvalidArgumentException("Longitude can't be empty");
}
$this->longitude = (float)$longitude;
}
/**
* Return the latitude from the value object
*
* @return float
*/
public function getLatitude()
{
return $this->latitude;
}
/**
* Return the longitude from the value object
*
* @return float
*/
public function getLongitude()
{
return $this->longitude;
}
/**
* Return array with longitude and latitude from value object
*
* @return array
*/
public function getValue()
{
return [
'latitude' => $this->getLatitude(),
'longitude' => $this->getLongitude()
];
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| DateTime | Folder | 0750 |
|
|
| Number | Folder | 0750 |
|
|
| String | Folder | 0750 |
|
|
| BooleanValueObject.php | File | 632 B | 0640 |
|
| Discount.php | File | 1.1 KB | 0640 |
|
| DiscountFixedValue.php | File | 1.08 KB | 0640 |
|
| DiscountPercentageValue.php | File | 1.1 KB | 0640 |
|
| Duration.php | File | 719 B | 0640 |
|
| Gender.php | File | 870 B | 0640 |
|
| GeoTag.php | File | 1.47 KB | 0640 |
|
| Json.php | File | 549 B | 0640 |
|
| Picture.php | File | 1.7 KB | 0640 |
|
| PositiveDuration.php | File | 803 B | 0640 |
|
| Priority.php | File | 1.18 KB | 0640 |
|
| Recurring.php | File | 4.05 KB | 0640 |
|