Attribute Class =============== .. php:class:: Attribute Represents an ``Entity`` Attribute .. php:method:: __construct(string $name, string $type) Create a new Attribute instance :param string $name: Attribute name :param string $type: Attribute type :returns: An ``Attribute`` instance :rtype: Attribute .. php:method:: addComment(string $comment) :param string $comment: The comment :returns: An ``Attribute`` instance with the comment :rtype: Attribute .. php:method:: addKey(Key ...$key) Add key type(s) to the attribute :param Key ...$key: Key type(s) :returns: An ``Attribute`` instance with the keys added :rtype: Attribute .. php:method:: withKey(Key ...$key) Set key type(s) to the attribute :param Key ...$key: Key type(s) :returns: An ``Attribute`` instance with the keys :rtype: Attribute