Skip to content

Commit

Permalink
[PHPDoc] Simplified Validator classes validate method doc
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Aug 28, 2024
1 parent 608d4e7 commit 8493436
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
2 changes: 0 additions & 2 deletions src/lib/FieldType/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ abstract public function validateConstraints($constraints);
* When a check against a constraint has failed, an entry will be added to the
* $errors array.
*
* @param \Ibexa\Core\FieldType\Value $value
*
* @return bool
*/
abstract public function validate(Value $value, ?FieldDefinition $fieldDefinition = null);
Expand Down
11 changes: 0 additions & 11 deletions src/lib/FieldType/Validator/FloatValueValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

use Ibexa\Contracts\Core\Repository\Values\ContentType\FieldDefinition;
use Ibexa\Core\FieldType\ValidationError;
use Ibexa\Core\FieldType\Validator;
use Ibexa\Core\FieldType\Value as BaseValue;

/**
Expand Down Expand Up @@ -50,17 +49,7 @@ protected function getConstraintsValidationErrorMessage(string $name, mixed $val
}

/**
* Perform validation on $value.
*
* Will return true when all constraints are matched. If one or more
* constraints fail, the method will return false.
*
* When a check against a constant has failed, an entry will be added to the
* $errors array.
*
* @param \Ibexa\Core\FieldType\Float\Value $value
*
* @return bool
*/
public function validate(BaseValue $value, ?FieldDefinition $fieldDefinition = null): bool
{
Expand Down
10 changes: 0 additions & 10 deletions src/lib/FieldType/Validator/IntegerValueValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,7 @@ protected function getConstraintsValidationErrorMessage(string $name, mixed $val
}

/**
* Perform validation on $value.
*
* Will return true when all constraints are matched. If one or more
* constraints fail, the method will return false.
*
* When a check against a constraint has failed, an entry will be added to the
* $errors array.
*
* @param \Ibexa\Core\FieldType\Integer\Value $value
*
* @return bool
*/
public function validate(BaseValue $value, ?FieldDefinition $fieldDefinition = null): bool
{
Expand Down

0 comments on commit 8493436

Please sign in to comment.