class AttributeMetadata implements AttributeMetadataInterface

{@inheritdoc}

Properties

$name
$groups

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.

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 40
__construct(string $name)

Constructs a metadata for the given attribute.

Parameters

string $name

at line 48
string getName()

Gets the attribute name.

Return Value

string

at line 56
addGroup(string $group)

Adds this attribute to the given group.

Parameters

string $group

at line 66
string[] getGroups()

Gets groups of this attribute.

Return Value

string[]

at line 74
merge(AttributeMetadataInterface $attributeMetadata)

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

Parameters

AttributeMetadataInterface $attributeMetadata

at line 86
string[] __sleep()

Returns the names of the properties that should be serialized.

Return Value

string[]