Esempio n. 1
0
 /**
  * @param VulnerableElement $parent
  */
 public function setParent(VulnerableElement $parent)
 {
     if ($this->parent === $parent) {
         return;
     }
     if ($this->parent && $this->parent->hasChild($this)) {
         $this->parent->removeChild($this);
     }
     $this->parent = $parent;
     if (!$this->host) {
         $this->setTargets($parent ? $parent->getTargets() : null);
     }
 }