class Serializer

Properties

static protected array<int, string> $ignore

The properties to ignore when serializing.

Methods

static array
serialize(Type $type)

Serialize the given property to an array.

static bool
isRequired(Type $type)

Determine if the given type is required.

static bool
isNullable(Type $type)

Determine if the given type is nullable.

Details

at line 25
static array serialize(Type $type)

Serialize the given property to an array.

Parameters

Type $type

Return Value

array

Exceptions

RuntimeException

at line 86
static protected bool isRequired(Type $type)

Determine if the given type is required.

Parameters

Type $type

Return Value

bool

at line 96
static protected bool isNullable(Type $type)

Determine if the given type is nullable.

Parameters

Type $type

Return Value

bool