Caffeinated\Menus\Builder::__construct PHP Method

__construct() public method

Create a new Builder instance.
public __construct ( string $name, array $config, HtmlBuilder $html, UrlGenerator $url )
$name string
$config array
$html Collective\Html\HtmlBuilder
$url Illuminate\Routing\UrlGenerator
    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();
    }