function __construct($name = null, VulnerableElement $vulnTree = null) { $this->name = $name; $this->vulnTree = $vulnTree ?: VulnerableElement::create(); $this->vulnTree->setHost($this); }