public function equals(NetworkInterface $other = null) { if ($other) { return $this->getNumericIp() == $other->getNumericIp() && $this->getNumericIpMask() == $other->getNumericIpMask(); } else { return false; } }
/** * Set network * * @param \CertUnlp\NgenBundle\Model\NetworkInterface $network * @return Incident */ public function setNetwork(NetworkInterface $network = null) { $this->network = $network; $this->setNetworkAdmin($network->getNetworkAdmin()); $this->setAcademicUnit($network->getAcademicUnit()); return $this; }