Tournament Generator

WithCategories

Interface for objects that contain categories

Tags
author

Tomá? Vojík vojik@wboy.cz

since
0.4

Table of Contents

addCategory()  : WithCategories
Add one or more category to object
category()  : Category
Creates a new category and adds it to the object
getCategories()  : array<string|int, Category>
Get all categories
getCategoryWait()  : int
Get the wait time between categories
setCategoryWait()  : WithCategories
Set the wait time between categories

Methods

category()

Creates a new category and adds it to the object

public category([string $name = '' ][, string|int|null $id = null ]) : Category
Parameters
$name : string = ''

New category name

$id : string|int|null = null

Id of the new category - if omitted -> it is generated automatically as unique string

Return values
Category

New category

getCategoryWait()

Get the wait time between categories

public getCategoryWait() : int
Return values
int

Search results