Attribute Class¶
- class Attribute¶
Represents an
EntityAttribute- __construct(string $name, string $type)¶
Create a new Attribute instance
- Parameters:
$name (
string) – Attribute name$type (
string) – Attribute type
- Returns:
An
Attributeinstance- Return type:
- addComment(string $comment)¶
- Parameters:
$comment (
string) – The comment
- Returns:
An
Attributeinstance with the comment- Return type:
- addKey(Key ...$key)¶
Add key type(s) to the attribute