| @@ 128-138 (lines=11) @@ | ||
| 125 | /** |
|
| 126 | * {@inheritdoc} |
|
| 127 | */ |
|
| 128 | public function setRules(array $rules): ValidatorInterface |
|
| 129 | { |
|
| 130 | if ($this->rules == $rules) { |
|
| 131 | return $this; |
|
| 132 | } |
|
| 133 | ||
| 134 | $this->rules = $rules; |
|
| 135 | $this->reset(); |
|
| 136 | ||
| 137 | return $this; |
|
| 138 | } |
|
| 139 | ||
| 140 | /** |
|
| 141 | * {@inheritdoc} |
|
| @@ 143-153 (lines=11) @@ | ||
| 140 | /** |
|
| 141 | * {@inheritdoc} |
|
| 142 | */ |
|
| 143 | public function setData($data): ValidatorInterface |
|
| 144 | { |
|
| 145 | if ($this->data == $data) { |
|
| 146 | return $this; |
|
| 147 | } |
|
| 148 | ||
| 149 | $this->data = $data; |
|
| 150 | $this->reset(); |
|
| 151 | ||
| 152 | return $this; |
|
| 153 | } |
|
| 154 | ||
| 155 | /** |
|
| 156 | * {@inheritdoc} |
|