Caffeinated\Menus\Item::__construct PHP Метод

__construct() публичный Метод

Constructor.
public __construct ( Builder $builder, integer $id, string $title, array | string $options )
$builder Builder
$id integer
$title string
$options array | string
    public function __construct($builder, $id, $title, $options)
    {
        $this->builder = $builder;
        $this->id = $id;
        $this->title = $title;
        $this->slug = camel_case(str_slug($title, ' '));
        $this->attributes = $this->builder->extractAttributes($options);
        $this->parent = (is_array($options) and isset($options['parent'])) ? $options['parent'] : null;
        $this->configureLink($options);
    }