Jake Vanderwerf
2026-05-03 9bbeea742424837fb58207d88e10dbca0b2cae04
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?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'
        ];
    }
}