public static function attributeTypeError($attributeName, $annotationName, $context, $expected, $actual)
    {
        return self::typeError(sprintf(
            'Attribute "%s" of @%s declared on %s expects %s, but got %s.',
            $attributeName,
            $annotationName,
            $context,
            $expected,
            is_object($actual) ? 'an instance of ' . get_class($actual) : gettype($actual)
        ));
    }
public static function attributeTypeError($attributeName, $annotationName, $context, $expected, $actual)
    {
        return self::typeError(sprintf(
            'Attribute "%s" of @%s declared on %s expects %s, but got %s.',
            $attributeName,
            $annotationName,
            $context,
            $expected,
            is_object($actual) ? 'an instance of ' . get_class($actual) : gettype($actual)
        ));
    }
public static function attributeTypeError ( $ attributeName , $ annotationName , $ context , $ expected , $ actual ) { return self :: typeError ( sprintf ( 'Attribute "%s" of @%s declared on %s expects %s, but got %s.' , $ attributeName , $ annotationName , $ context , $ expected , is_object ( $ actual ) ? 'an instance of ' . get_class ( $ actual ) : gettype ( $ actual ) ) ) ; }
Creates a new AnnotationException describing an type error of an attribute.

@since 2.2

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

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