Ejemplo n.º 1
0
 /**
  * @param VulnerabilityHost $parent
  */
 public function setParent(VulnerabilityHost $parent)
 {
     if ($this->parent === $parent) {
         return;
     }
     if ($this->parent && $this->parent->hasField($this)) {
         $this->parent->removeField($this);
     }
     $this->parent = $parent;
 }