Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
ConstraintViolation.php
Go to the documentation of this file.
1<?php
2
7
19 protected $message;
20 protected $value;
21 protected $member;
22 protected $validatorType;
23 protected $severity;
24
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() {
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
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
Constraint Violation Generated During Validation with the ValidatorsManager.
__construct($message, $value, $member, $validatorType, $severity)