PHP Класс Phan\Debug

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
astFlagDescription ( integer $flag ) : string
backtrace ( integer $levels ) : string
mark ( ) Print a lil' something to the console to see if a thing is called
nodeName ( $node ) : string
nodeToString ( string | ast\Node | null $node, $name = null, integer $indent ) : string
print ( string $message, integer $indent ) Print a thing with the given indent level
printNode ( string | ast\Node | null $node ) : null
printNodeName ( $node, $indent ) Print the name of a node to the terminal

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

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

public static astFlagDescription ( integer $flag ) : string
$flag integer
Результат string Get a string representation of AST node flags such as 'ASSIGN_DIV|TYPE_ARRAY'

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

public static backtrace ( integer $levels ) : string
$levels integer
Результат string Pretty-printer for debug_backtrace

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

Print a lil' something to the console to see if a thing is called
public static mark ( )

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

public static nodeName ( $node ) : string
Результат string The name of the node

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

public static nodeToString ( string | ast\Node | null $node, $name = null, integer $indent ) : string
$node string | ast\Node | null An AST node
$indent integer The indentation level for the string
Результат string A string representation of an AST node

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

Print a thing with the given indent level
public static print ( string $message, integer $indent )
$message string
$indent integer

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

public static printNode ( string | ast\Node | null $node ) : null
$node string | ast\Node | null An AST node Print an AST node
Результат null

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

Print the name of a node to the terminal
public static printNodeName ( $node, $indent )