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