Tournament Generator

WithRounds

Interface for objects that contain rounds

Tags
author

Tomáš Vojík vojik@wboy.cz

since
0.4

Table of Contents

addRound()  : $this
Adds round to the Object
getRounds()  : array<string|int, Round>
Get all rounds in this category
queryRounds()  : ContainerQuery
Get rounds container query
round()  : Round
Creates a new round and adds it to the category

Methods

addRound()

Adds round to the Object

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

Search results