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
see
AttributeClassTrait::setClass()
see
AttributeClassTrait::getClass()

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

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

Search results