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