Quittio next API

ArrayNormalizer
in package

FinalYes

Converts DTOs into plain arrays (scalars only) for JSON, storage and APIs.

Values equal to the constructor default are omitted to keep the output compact; the hydrator restores them from the defaults.

Table of Contents

Methods

normalize()  : array<string, mixed>
value()  : mixed

Methods

normalize()

public normalize(object $dto) : array<string, mixed>
Parameters
$dto : object
Return values
array<string, mixed>

value()

public value(mixed $value) : mixed
Parameters
$value : mixed
On this page

Search results