Documentation

Roles extends Value
in package

Class Roles

Holds involved people of all roles

Table of Contents

$data  : mixed
$roles  : array<string|int, mixed>
Types of involvement
__construct()  : void
Constructor
__toString()  : string
Casts data to string
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

$roles

Types of involvement

protected array<string|int, mixed> $roles = ['author' => 'Autorenschaft', 'original' => 'Vorlage', 'illustrator' => 'Illustration', 'drawer' => 'Zeichnungen', 'photographer' => 'Fotos', 'translator' => 'Übersetzung', 'narrator' => 'Gesprochen', 'composer' => 'Komposition', 'director' => 'Regie', 'producer' => 'Produktion', 'actor' => 'Besetzung', 'participant' => 'Mitarbeit']

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

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 $groupDelimiter = '. ' ]) : string
Parameters
$delimiter : string = '; '

Delimiter between people of same role

$groupDelimiter : string = '. '

Delimiter between role groups

Return values
string

value()

Exports default value

public value() : mixed
Return values
mixed

Search results