PHP Class Tester\CodeCoverage\PhpParser

Afficher le fichier Open project: nette/tester Class Usage Examples

Méthodes publiques

Méthode Description
parse ( $code ) : stdClass

Private Methods

Méthode Description
fetch ( &$tokens, $take )

Method Details

parse() public méthode

public parse ( $code ) : stdClass
Résultat stdClass Returned structure is: stdClass { linesOfCode: int, linesOfComments: int, functions: [functionName => $functionInfo], classes: [className => $info], traits: [traitName => $info], interfaces: [interfaceName => $info], } where $functionInfo is: stdClass { start: int, end: int } and $info is: stdClass { start: int, end: int, methods: [methodName => $methodInfo] } where $methodInfo is: stdClass { start: int, end: int, visibility: public|protected|private }