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