public function __construct($name, $config, HtmlBuilder $html, UrlGenerator $url) { $this->name = $name; $this->config = $config; $this->html = $html; $this->url = $url; $this->items = new Collection(); }