1 | <?php |
||
21 | class Chain implements Provider |
||
22 | { |
||
23 | /** |
||
24 | * @var Provider[] |
||
25 | */ |
||
26 | private $providers = []; |
||
27 | |||
28 | /** |
||
29 | * Chain constructor. |
||
30 | * |
||
31 | * @param array $providers |
||
32 | */ |
||
33 | public function __construct(array $providers = []) |
||
37 | |||
38 | /** |
||
39 | * Returns the name of this provider. |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function getName() |
||
47 | |||
48 | /** |
||
49 | * Finds a TimeZone for a location on the surface of the earth. |
||
50 | * |
||
51 | * @param string|float $lat Coordinate latitude. |
||
52 | * @param string|float $lng Coordinate longitude. |
||
53 | * @param int|null $timestamp Seconds since Jan 1, 1970 UTC. |
||
54 | * |
||
55 | * @return ZoneInfo |
||
56 | */ |
||
57 | public function find($lat, $lng, $timestamp = null) |
||
75 | } |
||
76 |