src/AnnotationContext.php
public function getContext()
    {
        if (isset($this->context['function'])) {
            return AnnotationContextInterface::IS_FUNCTION;
        } elseif (isset($this->context['method'])) {
            return AnnotationContextInterface::IS_METHOD;
        } elseif (isset($this->context['property'])) {
            return AnnotationContextInterface::IS_PROPERTY;
        } else {
            return AnnotationContextInterface::IS_CLASS;
        }
    }
public function getContext()
    {
        if (isset($this->context['function'])) {
            return AnnotationContextInterface::IS_FUNCTION;
        } elseif (isset($this->context['method'])) {
            return AnnotationContextInterface::IS_METHOD;
        } elseif (isset($this->context['property'])) {
            return AnnotationContextInterface::IS_PROPERTY;
        } else {
            return AnnotationContextInterface::IS_CLASS;
        }
    }
{@inheritdoc}