Documentation

Value
in package
implements Field

Class Value

Base class for all field values

Interfaces, Classes, Traits and Enums

Field
Interface Field

Table of Contents

$data  : mixed
__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

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 = '<br \>' ]) : string
Parameters
$delimiter : string = '<br \>'

Separator

Return values
string

value()

Exports default value

public value() : mixed
Return values
mixed

Search results