WithRounds
Trait WithRounds
Tags
Table of Contents
- addRound() : $this
- Adds round to the category
- getRounds() : array<string|int, Round>
- Get all rounds in this category
- round() : Round
- Creates a new round and adds it to the category
Methods
addRound()
Adds round to the category
public
addRound(Round ...$rounds) : $this
Parameters
- $rounds : Round
-
One or more round objects
Return values
$this —getRounds()
Get all rounds in this category
public
getRounds() : array<string|int, Round>
Return values
array<string|int, Round> —round()
Creates a new round and adds it to the category
public
round([string $name = '' ][, string|int|null $id = null ]) : Round
Parameters
- $name : string = ''
-
Round name
- $id : string|int|null = null
-
Round id - if omitted -> it is generated automatically as unique string
Return values
Round —The newly created round