ReferenceMap
in package
implements
ReferenceMapInterface
FinalYes
A collection of references, indexed by label
Table of Contents
Interfaces
- ReferenceMapInterface
- A collection of references
Properties
- $normalizer : TextNormalizer
- $references : array<string, ReferenceInterface>
Methods
- __construct() : mixed
- add() : void
- contains() : bool
- count() : int
- get() : ReferenceInterface|null
- getIterator() : Traversable<string, ReferenceInterface>
Properties
$normalizer
private
TextNormalizer
$normalizer
Tags
$references
private
array<string, ReferenceInterface>
$references
= []
Tags
Methods
__construct()
public
__construct() : mixed
add()
public
add(ReferenceInterface $reference) : void
Parameters
- $reference : ReferenceInterface
contains()
public
contains(string $label) : bool
Parameters
- $label : string
Return values
boolcount()
public
count() : int
Return values
intget()
public
get(string $label) : ReferenceInterface|null
Parameters
- $label : string
Return values
ReferenceInterface|nullgetIterator()
public
getIterator() : Traversable<string, ReferenceInterface>