public function __construct($name, $version = null, $type = null, $tree = false) { $this->name = $name; $this->version = $version; $this->type = $type; $this->tree = $tree; }