Skip to content

Commit 8493436

Browse files
committed
[PHPDoc] Simplified Validator classes validate method doc
1 parent 608d4e7 commit 8493436

File tree

3 files changed

+0
-23
lines changed

3 files changed

+0
-23
lines changed

src/lib/FieldType/Validator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ abstract public function validateConstraints($constraints);
9696
* When a check against a constraint has failed, an entry will be added to the
9797
* $errors array.
9898
*
99-
* @param \Ibexa\Core\FieldType\Value $value
100-
*
10199
* @return bool
102100
*/
103101
abstract public function validate(Value $value, ?FieldDefinition $fieldDefinition = null);

src/lib/FieldType/Validator/FloatValueValidator.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
use Ibexa\Contracts\Core\Repository\Values\ContentType\FieldDefinition;
1111
use Ibexa\Core\FieldType\ValidationError;
12-
use Ibexa\Core\FieldType\Validator;
1312
use Ibexa\Core\FieldType\Value as BaseValue;
1413

1514
/**
@@ -50,17 +49,7 @@ protected function getConstraintsValidationErrorMessage(string $name, mixed $val
5049
}
5150

5251
/**
53-
* Perform validation on $value.
54-
*
55-
* Will return true when all constraints are matched. If one or more
56-
* constraints fail, the method will return false.
57-
*
58-
* When a check against a constant has failed, an entry will be added to the
59-
* $errors array.
60-
*
6152
* @param \Ibexa\Core\FieldType\Float\Value $value
62-
*
63-
* @return bool
6453
*/
6554
public function validate(BaseValue $value, ?FieldDefinition $fieldDefinition = null): bool
6655
{

src/lib/FieldType/Validator/IntegerValueValidator.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,7 @@ protected function getConstraintsValidationErrorMessage(string $name, mixed $val
4646
}
4747

4848
/**
49-
* Perform validation on $value.
50-
*
51-
* Will return true when all constraints are matched. If one or more
52-
* constraints fail, the method will return false.
53-
*
54-
* When a check against a constraint has failed, an entry will be added to the
55-
* $errors array.
56-
*
5749
* @param \Ibexa\Core\FieldType\Integer\Value $value
58-
*
59-
* @return bool
6050
*/
6151
public function validate(BaseValue $value, ?FieldDefinition $fieldDefinition = null): bool
6252
{

0 commit comments

Comments
 (0)