Inventory
in package
FinalYes
Table of Contents
Properties
- $anchorNormalizer : AnchorNormalizer
- $baseUrl : string
- $groups : array<string|int, InventoryGroup>
- $isLoaded : bool
Methods
- __construct() : mixed
- addGroup() : void
- getBaseUrl() : string
- getGroup() : InventoryGroup|null
- getGroups() : array<string|int, InventoryGroup>
- hasGroup() : bool
- isLoaded() : bool
- setIsLoaded() : Inventory
Properties
$anchorNormalizer read-only
private
AnchorNormalizer
$anchorNormalizer
$baseUrl read-only
private
string
$baseUrl
$groups
private
array<string|int, InventoryGroup>
$groups
= []
$isLoaded
private
bool
$isLoaded
= false
Methods
__construct()
public
__construct(string $baseUrl, AnchorNormalizer $anchorNormalizer) : mixed
Parameters
- $baseUrl : string
- $anchorNormalizer : AnchorNormalizer
addGroup()
public
addGroup(string $key, InventoryGroup $group) : void
Parameters
- $key : string
- $group : InventoryGroup
getBaseUrl()
public
getBaseUrl() : string
Return values
stringgetGroup()
public
getGroup(CrossReferenceNode $node, RenderContext $renderContext, Messages $messages) : InventoryGroup|null
Parameters
- $node : CrossReferenceNode
- $renderContext : RenderContext
- $messages : Messages
Return values
InventoryGroup|nullgetGroups()
public
getGroups() : array<string|int, InventoryGroup>
Return values
array<string|int, InventoryGroup>hasGroup()
public
hasGroup(string $key) : bool
Parameters
- $key : string
Return values
boolisLoaded()
public
isLoaded() : bool
Return values
boolsetIsLoaded()
public
setIsLoaded(bool $isLoaded) : Inventory
Parameters
- $isLoaded : bool