Tournament Generator

WithGeneratorSetters

Interface for objects that can generate games

Tags
author

Tomá? Vojík vojik@wboy.cz

since
0.4

Table of Contents

getInGame()  : int
Get how many teams play in each game
getMaxSize()  : int
Get max group size
getType()  : mixed
Get generator type
setInGame()  : $this
Set how many teams play in each game
setMaxSize()  : $this
Set max group size
setType()  : $this
Sets a generator type

Methods

getInGame()

Get how many teams play in each game

public getInGame() : int
Return values
int

setInGame()

Set how many teams play in each game

public setInGame(int $inGame) : $this
Parameters
$inGame : int

2/3/4

Return values
$this

setMaxSize()

Set max group size

public setMaxSize(int $size) : $this
Parameters
$size : int
Return values
$this

setType()

Sets a generator type

public setType([string $type = Constants::ROUND_ROBIN ]) : $this
Parameters
$type : string = Constants::ROUND_ROBIN
Return values
$this

Search results