PHP Class PhpCsFixer\DocBlock\Annotation

Author: Graham Campbell ([email protected])
Afficher le fichier Open project: friendsofphp/php-cs-fixer Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( array $lines ) Create a new line instance.
__toString ( ) : string Get the string representation of object.
getContent ( ) : string Get the annotation content.
getEnd ( ) : integer Get the end position of this annotation.
getStart ( ) : integer Get the start position of this annotation.
getTag ( ) : Tag Get the associated tag.
getTagsWithTypes ( ) : string[] Get all the annotation tag names with types.
getTypes ( ) : string[] Get the types associated with this annotation.
remove ( ) Remove this annotation by removing all its lines.
setTypes ( array $types ) Set the types associated with this annotation.
supportTypes ( )

Private Methods

Méthode Description
getTypesContent ( ) : string Get the current types content.

Method Details

__construct() public méthode

Create a new line instance.
public __construct ( array $lines )
$lines array

__toString() public méthode

Get the string representation of object.
public __toString ( ) : string
Résultat string

getContent() public méthode

Get the annotation content.
public getContent ( ) : string
Résultat string

getEnd() public méthode

Get the end position of this annotation.
public getEnd ( ) : integer
Résultat integer

getStart() public méthode

Get the start position of this annotation.
public getStart ( ) : integer
Résultat integer

getTag() public méthode

Get the associated tag.
public getTag ( ) : Tag
Résultat Tag

getTagsWithTypes() public static méthode

Get all the annotation tag names with types.
public static getTagsWithTypes ( ) : string[]
Résultat string[]

getTypes() public méthode

Get the types associated with this annotation.
public getTypes ( ) : string[]
Résultat string[]

remove() public méthode

Remove this annotation by removing all its lines.
public remove ( )

setTypes() public méthode

Set the types associated with this annotation.
public setTypes ( array $types )
$types array

supportTypes() public méthode

public supportTypes ( )