Class TimeZoneLocation
Representation of a time zone location.
<?php use ICanBoogie\TimeZoneLocation; $zone = new \DateTimeZone('Europe/Paris'); $location = new TimeZoneLocation($zone->getLocation()); echo $location; // FR,48.86667,2.33333 echo $location->country_code; // FR echo $location->latitude; // 48.86667 echo $location->longitude; // 2.33333 $location->latitude = true; // throws ICanBoogie\PropertyNotWritable
Methods summary
public static
|
|
public
|
|
public
|
|
public
|
|
public
string
|
Magic methods summary
Properties summary
Magic properties
public read-only
string
|
$country_code |
|
#
The country code of the location. |
public read-only
float
|
$latitude |
|
#
The latitude of the location. |
public read-only
float
|
$longitude |
|
#
The longitude of the location. |
public read-only
string
|
$comments |
|
#
Comments on the location. |