Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
Validator Class Reference
+ Inheritance diagram for Validator:

Public Member Functions

 __construct (string $type, null|string|array $constraints=['ref'=> false], ?string $message=null, ?string $severity=null, ?string $group=null)
 Validator constructor.
 
 asAnnotation ()
 
- Public Member Functions inherited from BaseAttribute
 __construct ()
 
 getNamespace ()
 
 __toString ()
 
- Public Member Functions inherited from BaseAnnotationTrait
 getProperties ()
 
 getPropertiesAndValues ($props=NULL)
 
 isSameAs ($annot)
 

Data Fields

string $type
 
string $message
 
string $severity
 
string $group
 
array $constraints
 

Additional Inherited Members

- Protected Member Functions inherited from BaseAttribute
 getDefaultParameters ()
 

Detailed Description

Definition at line 24 of file Validator.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( string  $type,
null|string|array  $constraints = ['ref' => false],
?string  $message = null,
?string  $severity = null,
?string  $group = null 
)

Validator constructor.

Parameters
string$type
string | array | null$constraints
string | null$message
string | null$severity
string | null$group
Exceptions

Exception

Definition at line 41 of file Validator.php.

Member Function Documentation

◆ asAnnotation()

asAnnotation ( )

Reimplemented from BaseAttribute.

Definition at line 56 of file Validator.php.

Field Documentation

◆ $constraints

array $constraints

Definition at line 30 of file Validator.php.

◆ $group

string $group

Definition at line 29 of file Validator.php.

◆ $message

string $message

Definition at line 27 of file Validator.php.

◆ $severity

string $severity

Definition at line 28 of file Validator.php.

◆ $type

string $type

Definition at line 26 of file Validator.php.


The documentation for this class was generated from the following file: