range = $range; } public static function isValid(string $range): bool { return Factory::parseRangeString($range) !== null; } public function contains(IAddress $address): bool { return $this->range->contains(Factory::parseAddressString((string)$address, ParseStringFlag::MAY_INCLUDE_ZONEID)); } public function __toString(): string { return $this->range->toString(); } }