Example #1
0
 public function equals(NetworkInterface $other = null)
 {
     if ($other) {
         return $this->getNumericIp() == $other->getNumericIp() && $this->getNumericIpMask() == $other->getNumericIpMask();
     } else {
         return false;
     }
 }
Example #2
0
 /**
  * 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;
 }