ValueObjects\DateTime\TimeZone::__construct PHP Method

__construct() public method

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