ReferenceMap
in package
implements
ReferenceMapInterface
A collection of references, indexed by label
Interfaces, Classes and Traits
- ReferenceMapInterface
- A collection of references
Table of Contents
- $normalizer : TextNormalizer
- $references : array<string|int, ReferenceInterface>
- __construct() : mixed
- addReference() : void
- contains() : bool
- getReference() : ReferenceInterface|null
- listReferences() : array<string|int, ReferenceInterface>
- Lists all registered references.
Properties
$normalizer
private
TextNormalizer
$normalizer
$references
private
array<string|int, ReferenceInterface>
$references
= []
Methods
__construct()
public
__construct() : mixed
Return values
mixed —addReference()
public
addReference(ReferenceInterface $reference) : void
Parameters
- $reference : ReferenceInterface
Return values
void —contains()
public
contains(string $label) : bool
Parameters
- $label : string
Return values
bool —getReference()
public
getReference(string $label) : ReferenceInterface|null
Parameters
- $label : string
Return values
ReferenceInterface|null —listReferences()
Lists all registered references.
public
listReferences() : array<string|int, ReferenceInterface>