interface BaseData implements RequestCastable, SelfBuilding

Methods

static CastsRequestInput|string
castRequestUsing(array $arguments)

Get the caster to use for validated request input.

static static
newInstance()

No description

static BaseData|null
optional(mixed ...$payloads)

Create an optional data object.

static BaseData
from(mixed ...$payloads)

Create a data object.

factory(CreationContext|null $creationContext = null)

Create a data construction factory, optionally with another creation's options.

static array
normalizers()

Get the data normalizers.

static array
prepareForPipeline(array $properties)

Prepare one normalized payload before its properties are read.

Details

in RequestCastable at line 15
static CastsRequestInput|string castRequestUsing(array $arguments)

Get the caster to use for validated request input.

Parameters

array $arguments

Return Value

CastsRequestInput|string

in SelfBuilding at line 10
static static newInstance()

No description

Return Value

static

at line 35
static BaseData|null optional(mixed ...$payloads)

Create an optional data object.

Parameters

mixed ...$payloads

Return Value

BaseData|null

at line 40
static BaseData from(mixed ...$payloads)

Create a data object.

Parameters

mixed ...$payloads

Return Value

BaseData

at line 114
static array|DataCollection|PaginatedDataCollection|CursorPaginatedDataCollection|Enumerable|AbstractPaginator|Paginator|AbstractCursorPaginator|CursorPaginator|LazyCollection|Collection collect(mixed $items, string|null $into = null)

Collect data objects.

Contract-typed sources retain every possible rebuildable runtime shape.

Parameters

mixed $items

null collects an empty $into target

string|null $into

Return Value

array|DataCollection|PaginatedDataCollection|CursorPaginatedDataCollection|Enumerable|AbstractPaginator|Paginator|AbstractCursorPaginator|CursorPaginator|LazyCollection|Collection )

at line 121
static CreationContextFactory factory(CreationContext|null $creationContext = null)

Create a data construction factory, optionally with another creation's options.

Parameters

CreationContext|null $creationContext

Return Value

CreationContextFactory

at line 128
static array normalizers()

Get the data normalizers.

Return Value

array

at line 136
static array prepareForPipeline(array $properties)

Prepare one normalized payload before its properties are read.

Parameters

array $properties

Return Value

array