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 array
filterAttributes(array $attributes)

Remove internal and unset attributes before publication.

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 27
static array serialize(Type $type)

Serialize the given property to an array.

Parameters

Type $type

Return Value

array

Exceptions

InvalidArgumentException
RuntimeException

at line 124
static protected array filterAttributes(array $attributes)

Remove internal and unset attributes before publication.

Parameters

array $attributes

Return Value

array

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

Determine if the given type is required.

Parameters

Type $type

Return Value

bool

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

Determine if the given type is nullable.

Parameters

Type $type

Return Value

bool