AttributeIdTrait
This is the 'id' attribute trait.
This trait has been created to share common code between form elements classes, in this case the declaration of the 'id' attribute and its set/get methods.
Tags
Table of Contents
$id | : string | |
---|---|---|
getId() | This method returns the current value of the 'id' attribute. | : string |
setId() | This method sets the 'id' attribute with the given value and returns self. | : self |
Properties
$id
protected
string
$id
= ''
Methods
getId()
This method returns the current value of the 'id' attribute.
public
getId() : string
Return values
string —setId()
This method sets the 'id' attribute with the given value and returns self.
public
setId(string $id) : self
Parameters
- $id : string