\Charcoal\Ui\MenuItemMenuItemBuilder

Menu Item Builder

Summary

Methods
Properties
Constants
__construct()
build()
No public properties found
DEFAULT_TYPE
No protected methods found
$factory
$container
N/A
No private methods found
No private properties found
N/A

Constants

DEFAULT_TYPE

DEFAULT_TYPE

The default, concrete, menu item model.

Properties

$factory

$factory : \Charcoal\Factory\FactoryInterface

Store the menu item factory instance.

Type

\Charcoal\Factory\FactoryInterface

$container

$container : \Pimple\Container

Store the dependency-injection container to fulfill the required services.

Type

\Pimple\Container

Methods

__construct()

__construct(\Charcoal\Factory\FactoryInterface  $factory, \Pimple\Container  $container) 

Return a new menu item builder.

Parameters

\Charcoal\Factory\FactoryInterface $factory

A menu item factory.

\Pimple\Container $container

The DI container.

build()

build(array|\ArrayAccess  $options) : \Charcoal\Ui\MenuItem\MenuItemInterface

Build and return a new menu item.

Parameters

array|\ArrayAccess $options

The menu item build options.

Returns

\Charcoal\Ui\MenuItem\MenuItemInterface