Annotation
    
            
            in package
            
        
    
    
    
FinalYes
This represents an entire annotation from a docblock.
Tags
Table of Contents
Methods
- __construct() : mixed
 - Create a new line instance.
 - __toString() : string
 - Get the string representation of object.
 - getContent() : string
 - Get the annotation content.
 - getEnd() : int
 - Get the end position of this annotation.
 - getNormalizedTypes() : array<string|int, string>
 - Get the normalized types associated with this annotation, so they can easily be compared.
 - getStart() : int
 - Get the start position of this annotation.
 - getTag() : Tag
 - Get the associated tag.
 - getTagsWithTypes() : array<string|int, string>
 - Get all the annotation tag names with types.
 - getTypes() : array<string|int, string>
 - Get the types associated with this annotation.
 - remove() : void
 - Remove this annotation by removing all its lines.
 - setTypes() : void
 - Set the types associated with this annotation.
 - supportTypes() : bool
 
Methods
__construct()
Create a new line instance.
    public
                    __construct(array<string|int, Line> $lines[, null|NamespaceAnalysis $namespace = null ][, array<string|int, NamespaceUseAnalysis> $namespaceUses = [] ]) : mixed
    Parameters
- $lines : array<string|int, Line>
 - $namespace : null|NamespaceAnalysis = null
 - $namespaceUses : array<string|int, NamespaceUseAnalysis> = []
 
__toString()
Get the string representation of object.
    public
                    __toString() : string
    Return values
stringgetContent()
Get the annotation content.
    public
                    getContent() : string
    Return values
stringgetEnd()
Get the end position of this annotation.
    public
                    getEnd() : int
    Return values
intgetNormalizedTypes()
Get the normalized types associated with this annotation, so they can easily be compared.
    public
                    getNormalizedTypes() : array<string|int, string>
    Return values
array<string|int, string>getStart()
Get the start position of this annotation.
    public
                    getStart() : int
    Return values
intgetTag()
Get the associated tag.
    public
                    getTag() : Tag
    Return values
TaggetTagsWithTypes()
Get all the annotation tag names with types.
    public
            static        getTagsWithTypes() : array<string|int, string>
    Return values
array<string|int, string>getTypes()
Get the types associated with this annotation.
    public
                    getTypes() : array<string|int, string>
    Return values
array<string|int, string>remove()
Remove this annotation by removing all its lines.
    public
                    remove() : void
    setTypes()
Set the types associated with this annotation.
    public
                    setTypes(array<string|int, string> $types) : void
    Parameters
- $types : array<string|int, string>
 
supportTypes()
    public
                    supportTypes() : bool