class PropertyMetadata (View source)

Property metadata represents information about the definition of a single property of an annotation, it's name, accepted types, whether it's required and whether it's default.

Methods

__construct(string $name, array|null $type, bool $required = false, bool $default = false, array|null $enum = null)

No description

getName()

No description

isRequired()

No description

array
getType()

No description

isDefault()

No description

array|float|string|bool>|null
getEnum()

No description

Details

__construct(string $name, array|null $type, bool $required = false, bool $default = false, array|null $enum = null)

Parameters

string $name
array|null $type
bool $required
bool $default
array|null $enum

getName()

isRequired()

array getType()

Return Value

array string>|null

isDefault()

array|float|string|bool>|null getEnum()

Return Value

array|float|string|bool>|null