public static function requiredError($attributeName, $annotationName, $context, $expected)
    {
        return self::typeError(sprintf(
            'Attribute "%s" of @%s declared on %s expects %s. This value should not be null.',
            $attributeName,
            $annotationName,
            $context,
            $expected
        ));
    }
public static function requiredError($attributeName, $annotationName, $context, $expected)
    {
        return self::typeError(sprintf(
            'Attribute "%s" of @%s declared on %s expects %s. This value should not be null.',
            $attributeName,
            $annotationName,
            $context,
            $expected
        ));
    }
public static function requiredError ( $ attributeName , $ annotationName , $ context , $ expected ) { return self :: typeError ( sprintf ( 'Attribute "%s" of @%s declared on %s expects %s. This value should not be null.' , $ attributeName , $ annotationName , $ context , $ expected ) ) ; }
Creates a new AnnotationException describing an required error of an attribute.

@since 2.2

@param string $attributeName
@param string $annotationName
@param string $context
@param string $expected

@return AnnotationException
Creates a new AnnotationException describing an required error of an attribute .