Documentation

Role extends Value
in package

Class Role

Holds involved people of the same role

Table of Contents

$data  : mixed
__construct()  : void
Constructor
__toString()  : string
Casts data to string
exists()  : bool
Checks whether role is vacant
toArray()  : array<string|int, mixed>
Converts data to array
toJson()  : string
Converts data to JSON string
toString()  : string
Converts data to string
value()  : mixed
Exports default value

Properties

$data

public mixed $data = null

Methods

__construct()

Constructor

public __construct([mixed $data = null ]) : void
Parameters
$data : mixed = null

Field value

Return values
void

__toString()

Casts data to string

public __toString() : string
Return values
string

exists()

Checks whether role is vacant

public exists() : bool
Return values
bool

toArray()

Converts data to array

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

toJson()

Converts data to JSON string

public toJson() : string
Return values
string

toString()

Converts data to string

public toString([string $delimiter = '; ' ]) : string
Parameters
$delimiter : string = '; '

Delimiter between people

Return values
string

value()

Exports default value

public value() : mixed
Return values
mixed

Search results