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