PHP Класс PhpCsFixer\DocBlock\Annotation

Автор: Graham Campbell ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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 ( )

Приватные методы

Метод Описание
getTypesContent ( ) : string Get the current types content.

Описание методов

__construct() публичный Метод

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

__toString() публичный Метод

Get the string representation of object.
public __toString ( ) : string
Результат string

getContent() публичный Метод

Get the annotation content.
public getContent ( ) : string
Результат string

getEnd() публичный Метод

Get the end position of this annotation.
public getEnd ( ) : integer
Результат integer

getStart() публичный Метод

Get the start position of this annotation.
public getStart ( ) : integer
Результат integer

getTag() публичный Метод

Get the associated tag.
public getTag ( ) : Tag
Результат Tag

getTagsWithTypes() публичный статический Метод

Get all the annotation tag names with types.
public static getTagsWithTypes ( ) : string[]
Результат string[]

getTypes() публичный Метод

Get the types associated with this annotation.
public getTypes ( ) : string[]
Результат string[]

remove() публичный Метод

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

setTypes() публичный Метод

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

supportTypes() публичный Метод

public supportTypes ( )