PHP Class SebastianBergmann\PHPLOC\Analyser

Afficher le fichier Open project: sebastianbergmann/phploc Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( )
countFile ( string $filename, boolean $countTests ) Processes a single file.
countFiles ( array $files, boolean $countTests ) : array Processes a set of files.
preProcessFile ( string $filename ) Pre-processes a single file.

Private Methods

Méthode Description
getClassName ( string $namespace, array $tokens, integer $i ) : string
getNamespaceName ( array $tokens, integer $i ) : string
getNextNonWhitespaceTokenPos ( array $tokens, integer $start ) : boolean
getPreviousNonWhitespaceTokenPos ( array $tokens, integer $start ) : boolean
isClassDeclaration ( array $tokens, integer $i ) : boolean
isTestClass ( string $className ) : boolean
isTestMethod ( string $functionName, integer $visibility, boolean $static, array $tokens, integer $currentToken ) : boolean

Method Details

__construct() public méthode

public __construct ( )

countFile() public méthode

Processes a single file.
public countFile ( string $filename, boolean $countTests )
$filename string
$countTests boolean

countFiles() public méthode

Processes a set of files.
public countFiles ( array $files, boolean $countTests ) : array
$files array
$countTests boolean
Résultat array

preProcessFile() public méthode

Pre-processes a single file.
public preProcessFile ( string $filename )
$filename string