private function buildViolation(string $message, $invalidValue): ConstraintViolationInterface
    {
        return new ConstraintViolation(
            $message,
            '',
            [
                'value' => $invalidValue,
            ],
            $invalidValue,
            null,
            $invalidValue
        );
    }
private function buildViolation(string $message, $invalidValue): ConstraintViolationInterface
    {
        return new ConstraintViolation(
            $message,
            '',
            [
                'value' => $invalidValue,
            ],
            $invalidValue,
            null,
            $invalidValue
        );
    }
private function buildViolation ( string $ message , $ invalidValue ) : ConstraintViolationInterface { return new ConstraintViolation ( $ message , '' , [ 'value' => $ invalidValue , ] , $ invalidValue , null , $ invalidValue ) ; }
This helper function builds an easy violation
object for our validator.

@param string            $message      the error message
@param string|float|null $invalidValue the actual invalid value

@return ConstraintViolationInterface the built constraint violation
This helper function builds an easy violation object for our validator .