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