class AttributeMetadata implements AttributeMetadataInterface

{@inheritdoc}

Properties

$name
$groups
int|null $maxDepth
string|null $serializedName

Methods

__construct(string $name)

No description

string
getName()

Gets the attribute name.

addGroup(string $group)

Adds this attribute to the given group.

string[]
getGroups()

Gets groups of this attribute.

setMaxDepth(int|null $maxDepth)

Sets the serialization max depth for this attribute.

int|null
getMaxDepth()

Gets the serialization max depth for this attribute.

setSerializedName(string $serializedName = null)

Sets the serialization name for this attribute.

string|null
getSerializedName()

Gets the serialization name for this attribute.

merge(AttributeMetadataInterface $attributeMetadata)

Merges an {see AttributeMetadataInterface} with in the current one.

string[]
__sleep()

Returns the names of the properties that should be serialized.

Details

at line 53
__construct(string $name)

Parameters

string $name

at line 61
string getName()

Gets the attribute name.

Return Value

string

at line 69
addGroup(string $group)

Adds this attribute to the given group.

Parameters

string $group

at line 79
string[] getGroups()

Gets groups of this attribute.

Return Value

string[]

at line 87
setMaxDepth(int|null $maxDepth)

Sets the serialization max depth for this attribute.

Parameters

int|null $maxDepth

at line 95
int|null getMaxDepth()

Gets the serialization max depth for this attribute.

Return Value

int|null

at line 103
setSerializedName(string $serializedName = null)

Sets the serialization name for this attribute.

Parameters

string $serializedName

at line 111
string|null getSerializedName()

Gets the serialization name for this attribute.

Return Value

string|null

at line 119
merge(AttributeMetadataInterface $attributeMetadata)

Merges an {see AttributeMetadataInterface} with in the current one.

Parameters

AttributeMetadataInterface $attributeMetadata

at line 141
string[] __sleep()

Returns the names of the properties that should be serialized.

Return Value

string[]