public function __construct(StringLiteral $name) { if (!in_array($name->toNative(), timezone_identifiers_list())) { throw new InvalidTimeZoneException($name); } $this->name = $name; }