N98\Util\Console\Helper\ParameterHelper::validateValue PHP Метод

validateValue() приватный Метод

private validateValue ( string $name, string $value, Symfony\Component\Validator\Constraints\Collection $constraints ) : Symfony\Component\Validator\ConstraintViolationInterface[] | Symfony\Component\Validator\ConstraintViolationListInterface
$name string
$value string
$constraints Symfony\Component\Validator\Constraints\Collection The constraint(s) to validate against.
Результат Symfony\Component\Validator\ConstraintViolationInterface[] | Symfony\Component\Validator\ConstraintViolationListInterface
    private function validateValue($name, $value, $constraints)
    {
        $validator = $this->getValidator();
        /** @var ConstraintViolationListInterface|ConstraintViolationInterface[] $errors */
        $errors = $validator->validateValue(array($name => $value), $constraints);
        return $errors;
    }