public function equals(NetworkInterface $other = null) { if ($other) { return $this->getNumericIp() == $other->getNumericIp() && $this->getNumericIpMask() == $other->getNumericIpMask(); } else { return false; } }