Skip to content

Commit 193075a

Browse files
authored
Update ValueValidatorBase.php
1 parent 9b4fabe commit 193075a

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

src/PackagePrivate/ValueValidatorBase.php

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,14 @@
99
use ValueValidators\ValueValidator;
1010

1111
/**
12-
* ValueValidator that holds base validation functions for any type of object.
13-
*
14-
* @since 0.1
15-
*
16-
* @license GPL-2.0+
17-
* @author Jeroen De Dauw < [email protected] >
12+
* @internal
1813
*/
1914
abstract class ValueValidatorBase implements ValueValidator {
2015

2116
/**
2217
* A list of allowed values. This means the parameters value(s) must be in the list
2318
* during validation. False for no restriction.
2419
*
25-
* @since 0.1
26-
*
2720
* @var array|false
2821
*/
2922
protected $allowedValues = false;
@@ -32,22 +25,16 @@ abstract class ValueValidatorBase implements ValueValidator {
3225
* A list of prohibited values. This means the parameters value(s) must
3326
* not be in the list during validation. False for no restriction.
3427
*
35-
* @since 0.1
36-
*
3728
* @var array|false
3829
*/
3930
protected $prohibitedValues = false;
4031

4132
/**
42-
* @since 0.1
43-
*
4433
* @var array
4534
*/
4635
protected $options = [];
4736

4837
/**
49-
* @since 0.1
50-
*
5138
* @var Error[]
5239
*/
5340
protected $errors = [];
@@ -78,8 +65,6 @@ final public function validate( $value ) {
7865
/**
7966
* Checks the value against the allowed values and prohibited values lists in case they are set.
8067
*
81-
* @since 0.1
82-
*
8368
* @param mixed $value
8469
*/
8570
protected function valueIsAllowed( $value ) {
@@ -95,8 +80,6 @@ protected function valueIsAllowed( $value ) {
9580
/**
9681
* @see ValueValidator::validate
9782
*
98-
* @since 0.1
99-
*
10083
* @param mixed $value
10184
*/
10285
abstract public function doValidation( $value );
@@ -124,8 +107,6 @@ public function setOptions( array $param ) {
124107
/**
125108
* Registers an error message.
126109
*
127-
* @since 0.1
128-
*
129110
* @param string $errorMessage
130111
*/
131112
protected function addErrorMessage( $errorMessage ) {
@@ -135,8 +116,6 @@ protected function addErrorMessage( $errorMessage ) {
135116
/**
136117
* Registers an error.
137118
*
138-
* @since 0.1
139-
*
140119
* @param Error $error
141120
*/
142121
protected function addError( Error $error ) {
@@ -146,8 +125,6 @@ protected function addError( Error $error ) {
146125
/**
147126
* Registers a list of errors.
148127
*
149-
* @since 0.1
150-
*
151128
* @param Error[] $errors
152129
*/
153130
protected function addErrors( array $errors ) {
@@ -160,8 +137,6 @@ protected function addErrors( array $errors ) {
160137
* the $optionMap parameter in which keys are source names and values are target
161138
* names.
162139
*
163-
* @since 0.1
164-
*
165140
* @param mixed $value
166141
* @param ValueValidator $validator
167142
* @param string|null $property
@@ -196,8 +171,6 @@ protected function runSubValidator(
196171
/**
197172
* If the "values" and "excluding" arguments should be held into account.
198173
*
199-
* @since 0.1
200-
*
201174
* @return bool
202175
*/
203176
protected function enableWhitelistRestrictions() {
@@ -210,8 +183,6 @@ protected function enableWhitelistRestrictions() {
210183
* TODO: think about how to access set options in general and if we want to have
211184
* whitelist and baclklist values in the validator objects to begin with.
212185
*
213-
* @since 0.1
214-
*
215186
* @return array|bool false
216187
*/
217188
public function getWhitelistedValues() {

0 commit comments

Comments
 (0)