protected static loadPrefixTimeZonesMapFromFile ( $path ) |
protected static function loadPrefixTimeZonesMapFromFile($path)
{
if (!is_readable($path)) {
throw new \InvalidArgumentException("Mapping file can not be found");
}
$data = (require $path);
$map = new PrefixTimeZonesMap($data);
return $map;
}