AttributeMetadata

class AttributeMetadata implements AttributeMetadataInterface

{@inheritdoc}

Properties

string $name
array $groups
int|null $maxDepth

Methods

__construct(string $name)

Constructs a metadata for the given attribute.

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.

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

__construct(string $name)

Constructs a metadata for the given attribute.

Parameters

string $name

string getName()

Gets the attribute name.

Return Value

string

addGroup(string $group)

Adds this attribute to the given group.

Parameters

string $group

string[] getGroups()

Gets groups of this attribute.

Return Value

string[]

setMaxDepth(int|null $maxDepth)

Sets the serialization max depth for this attribute.

Parameters

int|null $maxDepth

int|null getMaxDepth()

Gets the serialization max depth for this attribute.

Return Value

int|null

merge(AttributeMetadataInterface $attributeMetadata)

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

Parameters

AttributeMetadataInterface $attributeMetadata

string[] __sleep()

Returns the names of the properties that should be serialized.

Return Value

string[]
doc_Symfony
2016-10-28 06:06:18
Comments
Leave a Comment

Please login to continue.