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
see
AttributeIdTrait::setId()
see
AttributeIdTrait::getId()

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

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
Return values
self

Search results