<?php
|
namespace JVBase\managers\SEO\render\Traits\_Properties;
|
|
if (!defined('ABSPATH')) {
|
exit;
|
}
|
trait longitudeTrait {
|
/**
|
* @var string|float The longitude of a location. For example 37.42242 (WGS 84).
|
*/
|
protected string|float $longitude;
|
|
public function getLongitude():string|float|null
|
{
|
return $this->longitude??null;
|
}
|
public function setLongitude(string|float $longitude):void
|
{
|
$this->longitude = $longitude;
|
}
|
|
public function getLongitudeFieldConfig():array
|
{
|
return [
|
'type' => 'text',
|
'label' => 'Longitude',
|
'hint' => 'The longitude of a location. For example -122.08585'
|
];
|
}
|
}
|