HierarchyBase
extends Base
in package
implements
Exportable
Class HierarchyBase
Extended base for hierarchy objects (Tournament, Category, Round, Group).
Tags
Interfaces, Classes and Traits
- Exportable
- Interface Exportable
Table of Contents
- $container : HierarchyContainer
- $id : string|int
- $name : string
- __toString() : string
- export() : ExporterInterface
- Prepares a general hierarchy exporter for this hierarchy class
- getContainer() : HierarchyContainer
- Get the hierarchy container
- getId() : string|int
- Gets the unique identifier of the object
- getName() : string
- Gets the name of the object
- insertIntoContainer() : $this
- Insert into hierarchical container
- setId() : self
- Sets the unique identifier of the object
- setName() : self
- Sets the name of the object
Properties
$container
protected
HierarchyContainer
$container
$id
protected
string|int
$id
$name
protected
string
$name
= ''
Methods
__toString()
public
__toString() : string
Return values
string —Name of the object
export()
Prepares a general hierarchy exporter for this hierarchy class
public
export() : ExporterInterface
Return values
ExporterInterface —getContainer()
Get the hierarchy container
public
getContainer() : HierarchyContainer
Return values
HierarchyContainer —getId()
Gets the unique identifier of the object
public
getId() : string|int
Return values
string|int —Unique identifier of the object
getName()
Gets the name of the object
public
getName() : string
Return values
string —Name of the object
insertIntoContainer()
Insert into hierarchical container
public
insertIntoContainer(Base $object) : $this
Parameters
- $object : Base
Tags
Return values
$this —setId()
Sets the unique identifier of the object
public
setId(string|int $id) : self
Parameters
- $id : string|int
-
Unique identifier of the object
Tags
Return values
self —setName()
Sets the name of the object
public
setName(string $name) : self
Parameters
- $name : string
-
Name of the object