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