interface FileAnalyser
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
@psalm-import-type CodeUnitFunctionType from \SebastianBergmann\CodeCoverage\StaticAnalysis\CodeUnitFindingVisitor @psalm-import-type CodeUnitMethodType from \SebastianBergmann\CodeCoverage\StaticAnalysis\CodeUnitFindingVisitor @psalm-import-type CodeUnitClassType from \SebastianBergmann\CodeCoverage\StaticAnalysis\CodeUnitFindingVisitor @psalm-import-type CodeUnitTraitType from \SebastianBergmann\CodeCoverage\StaticAnalysis\CodeUnitFindingVisitor @psalm-import-type LinesOfCodeType from \SebastianBergmann\CodeCoverage\StaticAnalysis\FileAnalyser @psalm-import-type LinesType from \SebastianBergmann\CodeCoverage\StaticAnalysis\FileAnalyser
@psalm-type LinesOfCodeType = array{ linesOfCode: int, commentLinesOfCode: int, nonCommentLinesOfCode: int } @psalm-type LinesType = array<int, int>
Hierarchy
- interface \SebastianBergmann\CodeCoverage\StaticAnalysis\FileAnalyser
Expanded class hierarchy of FileAnalyser
All classes that implement FileAnalyser
3 files declare their use of FileAnalyser
- Builder.php in vendor/
phpunit/ php-code-coverage/ src/ Node/ Builder.php - CodeCoverage.php in vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage.php - RawCodeCoverageData.php in vendor/
phpunit/ php-code-coverage/ src/ Data/ RawCodeCoverageData.php
File
-
vendor/
phpunit/ php-code-coverage/ src/ StaticAnalysis/ FileAnalyser.php, line 29
Namespace
SebastianBergmann\CodeCoverage\StaticAnalysisView source
interface FileAnalyser {
/**
* @psalm-return array<string, CodeUnitClassType>
*/
public function classesIn(string $filename) : array;
/**
* @psalm-return array<string, CodeUnitTraitType>
*/
public function traitsIn(string $filename) : array;
/**
* @psalm-return array<string, CodeUnitFunctionType>
*/
public function functionsIn(string $filename) : array;
/**
* @psalm-return LinesOfCodeType
*/
public function linesOfCodeFor(string $filename) : array;
/**
* @psalm-return LinesType
*/
public function executableLinesIn(string $filename) : array;
/**
* @psalm-return LinesType
*/
public function ignoredLinesFor(string $filename) : array;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
FileAnalyser::classesIn | public | function | @psalm-return array<string, CodeUnitClassType> | 2 |
FileAnalyser::executableLinesIn | public | function | @psalm-return LinesType | 2 |
FileAnalyser::functionsIn | public | function | @psalm-return array<string, CodeUnitFunctionType> | 2 |
FileAnalyser::ignoredLinesFor | public | function | @psalm-return LinesType | 2 |
FileAnalyser::linesOfCodeFor | public | function | @psalm-return LinesOfCodeType | 2 |
FileAnalyser::traitsIn | public | function | @psalm-return array<string, CodeUnitTraitType> | 2 |