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