Map
Table of Contents
Methods
- __construct() : mixed
- Map constructor.
- add() : self
- getSections() : array<string|int, MapSection>
- has() : bool
- merge() : static
- Return a new Map object that contains sections from this and another map. Duplicates are merged
- remove() : self
Methods
__construct()
Map constructor.
public
__construct([array<string|int, MapSection> $sections = [] ]) : mixed
Parameters
- $sections : array<string|int, MapSection> = []
add()
public
add(MapSection $section) : self
Parameters
- $section : MapSection
Return values
selfgetSections()
public
getSections() : array<string|int, MapSection>
Return values
array<string|int, MapSection>has()
public
has(MapSection $section) : bool
Parameters
- $section : MapSection
Return values
boolmerge()
Return a new Map object that contains sections from this and another map. Duplicates are merged
public
merge(static $anotherMap) : static
Parameters
- $anotherMap : static
Return values
staticremove()
public
remove(MapSection $section) : self
Parameters
- $section : MapSection