public __construct ( string $name, |
||
$name | string | The name of the item |
$parent | The parent of the item |
public function __construct($name, $parent = null)
{
$this->name = $name;
$this->disabled = false;
if ($parent != null) {
$parent->addChild($this);
}
}