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