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
see
AttributePlaceholderTrait::setPlaceholder()
see
AttributePlaceholderTrait::getPlaceholder()

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

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

Search results