CategoryCategoryIdMapper
in package
implements
CategoryCategoryIdMapperInterface
Class CategoryCategoryIdMapper
Interfaces, Classes and Traits
- CategoryCategoryIdMapperInterface
- Interface CategoryCategoryIdMapperInterface
Table of Contents
- $map : array<string|int, mixed>
- allCategories() : array<string|int, CategoryInterface>
- CategoryFromCategoryId() : CategoryInterface
Properties
$map
protected
array<string|int, mixed>
$map
= [GambioCookieConsentPanelServicesPurposesValueObjectsCategoryEssential::ID => GambioCookieConsentPanelServicesPurposesValueObjectsCategoryEssential::class, GambioCookieConsentPanelServicesPurposesValueObjectsCategoryFunctional::ID => GambioCookieConsentPanelServicesPurposesValueObjectsCategoryFunctional::class, GambioCookieConsentPanelServicesPurposesValueObjectsCategoryStatistics::ID => GambioCookieConsentPanelServicesPurposesValueObjectsCategoryStatistics::class, GambioCookieConsentPanelServicesPurposesValueObjectsCategoryMarketing::ID => GambioCookieConsentPanelServicesPurposesValueObjectsCategoryMarketing::class, GambioCookieConsentPanelServicesPurposesValueObjectsCategoryMiscellaneous::ID => GambioCookieConsentPanelServicesPurposesValueObjectsCategoryMiscellaneous::class]
Methods
allCategories()
public
allCategories(LanguageCode $code) : array<string|int, CategoryInterface>
Parameters
- $code : LanguageCode
Tags
Return values
array<string|int, CategoryInterface> —CategoryFromCategoryId()
public
CategoryFromCategoryId(int $id, LanguageCode $code) : CategoryInterface
Parameters
- $id : int
- $code : LanguageCode