ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) { return $this->ip . '/32'; } $ipv4 = $this->getEmbeddedIpv4($this->ip); if ($ipv4 !== null) { return $ipv4 . '/32'; } return $this->getIPv6Subnet($this->ip); } /** * Returns the specified IP address */ public function __toString(): string { return $this->ip; } }