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
see
AttributePatternTrait::setPattern()
see
AttributePatternTrait::getPattern()

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

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
Return values
self

Search results