phpDocumentor

MenuMapper

Class MenuMapper

Table of Contents

$menuFactory  : CacheMenuFactory
__construct()  : mixed
MenuMapper constructor.
map()  : void
Maps given $menuData to $groups.
mapGroup()  : MenuGroup

Properties

Methods

map()

Maps given $menuData to $groups.

public map(MenuGroups $groups, array<string|int, mixed> $menuData) : void

This function adds the data from $menuData to the passed MenuGroups collection. Right before this happens, the collection gets reset to work on a clean state. If the function succeeds, $groups contains all data in a well format.

Parameters
$groups : MenuGroups
$menuData : array<string|int, mixed>
Return values
void

mapGroup()

public mapGroup(array<string|int, mixed> $menuGroup) : MenuGroup
Parameters
$menuGroup : array<string|int, mixed>
Return values
MenuGroup

Search results