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