Tournament Generator

WithId

Identifies an object with an ID

Tags
author

Tomáš Vojík vojik@wboy.cz

since
0.5

Table of Contents

getId()  : string|int
Gets the unique identifier of the object
setId()  : WithId
Sets the unique identifier of the object

Methods

getId()

Gets the unique identifier of the object

public getId() : string|int
Return values
string|int

Unique identifier of the object

setId()

Sets the unique identifier of the object

public setId(string|int $id) : WithId
Parameters
$id : string|int

Unique identifier of the object

Tags
throws
InvalidArgumentException

if the provided argument is not of type 'string' or 'int'

Return values
WithId

Search results