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