Ubiquity
2.5.2
php rapid development framework
Loading...
Searching...
No Matches
ConstraintViolation.php
Go to the documentation of this file.
1
<?php
2
6
namespace
Ubiquity\contents\validation\validators
;
7
18
class
ConstraintViolation
{
19
protected
$message
;
20
protected
$value
;
21
protected
$member
;
22
protected
$validatorType
;
23
protected
$severity
;
24
25
public
function
__construct
(
$message
,
$value
,
$member
,
$validatorType
,
$severity
) {
26
$this->message =
$message
;
27
$this->severity =
$severity
;
28
$this->value =
$value
;
29
$this->member =
$member
;
30
$this->validatorType =
$validatorType
;
31
}
32
37
public
function
getMessage
() {
38
return
$this->message
;
39
}
40
45
public
function
getValue
() {
46
return
$this->value
;
47
}
48
53
public
function
getMember
() {
54
return
$this->member
;
55
}
56
61
public
function
getValidatorType
() {
62
return
$this->validatorType
;
63
}
64
69
public
function
getSeverity
() {
70
return
$this->severity
;
71
}
72
77
public
function
setMessage
(
$message
) {
78
$this->message =
$message
;
79
}
80
85
public
function
setValue
(
$value
) {
86
$this->value =
$value
;
87
}
88
93
public
function
setMember
(
$member
) {
94
$this->member =
$member
;
95
}
96
101
public
function
setValidatorType
(
$validatorType
) {
102
$this->validatorType =
$validatorType
;
103
}
104
109
public
function
setSeverity
(
$severity
) {
110
$this->severity =
$severity
;
111
}
112
113
public
function
__toString
() {
114
return
sprintf (
'%s : %s'
, $this->member, $this->message );
115
}
116
}
117
Ubiquity\contents\validation\validators\ConstraintViolation
Constraint Violation Generated During Validation with the ValidatorsManager.
Definition
ConstraintViolation.php:18
Ubiquity\contents\validation\validators\ConstraintViolation\getMessage
getMessage()
Definition
ConstraintViolation.php:37
Ubiquity\contents\validation\validators\ConstraintViolation\setMember
setMember($member)
Definition
ConstraintViolation.php:93
Ubiquity\contents\validation\validators\ConstraintViolation\$value
$value
Definition
ConstraintViolation.php:20
Ubiquity\contents\validation\validators\ConstraintViolation\getSeverity
getSeverity()
Definition
ConstraintViolation.php:69
Ubiquity\contents\validation\validators\ConstraintViolation\getValidatorType
getValidatorType()
Definition
ConstraintViolation.php:61
Ubiquity\contents\validation\validators\ConstraintViolation\$member
$member
Definition
ConstraintViolation.php:21
Ubiquity\contents\validation\validators\ConstraintViolation\setMessage
setMessage($message)
Definition
ConstraintViolation.php:77
Ubiquity\contents\validation\validators\ConstraintViolation\setValue
setValue($value)
Definition
ConstraintViolation.php:85
Ubiquity\contents\validation\validators\ConstraintViolation\__toString
__toString()
Definition
ConstraintViolation.php:113
Ubiquity\contents\validation\validators\ConstraintViolation\getMember
getMember()
Definition
ConstraintViolation.php:53
Ubiquity\contents\validation\validators\ConstraintViolation\$severity
$severity
Definition
ConstraintViolation.php:23
Ubiquity\contents\validation\validators\ConstraintViolation\$message
$message
Definition
ConstraintViolation.php:19
Ubiquity\contents\validation\validators\ConstraintViolation\getValue
getValue()
Definition
ConstraintViolation.php:45
Ubiquity\contents\validation\validators\ConstraintViolation\__construct
__construct($message, $value, $member, $validatorType, $severity)
Definition
ConstraintViolation.php:25
Ubiquity\contents\validation\validators\ConstraintViolation\setValidatorType
setValidatorType($validatorType)
Definition
ConstraintViolation.php:101
Ubiquity\contents\validation\validators\ConstraintViolation\$validatorType
$validatorType
Definition
ConstraintViolation.php:22
Ubiquity\contents\validation\validators\ConstraintViolation\setSeverity
setSeverity($severity)
Definition
ConstraintViolation.php:109
Ubiquity\contents\validation\validators
Validators definition.
C:
Users
myadd
Documents
GitHub
ubiquity-doc-api
vendor
phpmv
ubiquity
src
Ubiquity
contents
validation
validators
ConstraintViolation.php
Generated on Sun Dec 10 2023 15:04:15 for
Ubiquity
by
doxygen
1.9.8