Documentation

PdbJsonDefault
in package
implements ArrayableInterface

Represents a possible JSON value for an array property

N.B. MySQL allows creation of columns with a JSON type, but they end up as LONGTEXT columns with JSON validation constraints This should also support (PostGreSQL) JSON and JSONB columns

Table of Contents

Interfaces

ArrayableInterface
This object can be explicitly converted to an array with a `toArray()` method.

Properties

$default  : string

Methods

__construct()  : mixed
__toString()  : string
toArray()  : array<string|int, mixed>
Convert this object to an array.

Properties

Methods

__construct()

public __construct(string $default) : mixed
Parameters
$default : string

toArray()

Convert this object to an array.

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

Search results