$attribute
$attribute : string
Stored current attribute
Number validation class
$instances : array<mixed,\MocaBonita\tools\MbSingleton>
Stores instances of classes
setAttribute(string $attribute) : \MocaBonita\tools\validation\MbValidationBase
Set attribute
string | $attribute |
getInstance() : static
The singleton pattern is useful when we need to make sure that we only have a single instance of a class for the entire request lifecycle in a Web application. This usually occurs when we have global objects (such as a configuration class) or a resource (Such as an event queue).