PHP_CodeCoverage_Report_Node_Directory
extends PHP_CodeCoverage_Report_Node
in package
implements
IteratorAggregate
Represents a directory in the code coverage information tree.
Tags
Interfaces, Classes and Traits
- IteratorAggregate
Table of Contents
- $children : array<string|int, PHP_CodeCoverage_Report_Node>
- $classes : array<string|int, mixed>
- $directories : array<string|int, PHP_CodeCoverage_Report_Node_Directory>
- $files : array<string|int, PHP_CodeCoverage_Report_Node_File>
- $functions : array<string|int, mixed>
- $id : string
- $linesOfCode : array<string|int, mixed>
- $name : string
- $numClasses : int
- $numExecutableLines : int
- $numExecutedLines : int
- $numFiles : int
- $numFunctions : int
- $numMethods : int
- $numTestedClasses : int
- $numTestedFunctions : int
- $numTestedMethods : int
- $numTestedTraits : int
- $numTraits : int
- $parent : PHP_CodeCoverage_Report_Node
- $path : string
- $pathArray : array<string|int, mixed>
- $traits : array<string|int, mixed>
- __construct() : mixed
- Constructor.
- addDirectory() : PHP_CodeCoverage_Report_Node_Directory
- Adds a new directory.
- addFile() : PHP_CodeCoverage_Report_Node_File
- Adds a new file.
- count() : int
- Returns the number of files in/under this node.
- getChildNodes() : array<string|int, mixed>
- Returns the child nodes of this node.
- getClasses() : array<string|int, mixed>
- Returns the classes of this node.
- getClassesAndTraits() : array<string|int, mixed>
- Returns the classes and traits of this node.
- getDirectories() : array<string|int, mixed>
- Returns the directories in this directory.
- getFiles() : array<string|int, mixed>
- Returns the files in this directory.
- getFunctions() : array<string|int, mixed>
- Returns the functions of this node.
- getId() : string
- getIterator() : RecursiveIteratorIterator
- Returns an iterator for this node.
- getLineExecutedPercent() : int
- Returns the percentage of executed lines.
- getLinesOfCode() : array<string|int, mixed>
- Returns the LOC/CLOC/NCLOC of this node.
- getName() : string
- getNumClasses() : int
- Returns the number of classes.
- getNumClassesAndTraits() : int
- Returns the number of classes and traits.
- getNumExecutableLines() : int
- Returns the number of executable lines.
- getNumExecutedLines() : int
- Returns the number of executed lines.
- getNumFunctions() : int
- Returns the number of functions.
- getNumMethods() : int
- Returns the number of methods.
- getNumTestedClasses() : int
- Returns the number of tested classes.
- getNumTestedClassesAndTraits() : int
- Returns the number of tested classes and traits.
- getNumTestedFunctions() : int
- Returns the number of tested functions.
- getNumTestedMethods() : int
- Returns the number of tested methods.
- getNumTestedTraits() : int
- Returns the number of tested traits.
- getNumTraits() : int
- Returns the number of traits.
- getParent() : PHP_CodeCoverage_Report_Node
- getPath() : string
- getPathAsArray() : array<string|int, mixed>
- getTestedClassesAndTraitsPercent() : int
- Returns the percentage of traits that has been tested.
- getTestedClassesPercent() : int
- Returns the percentage of classes that has been tested.
- getTestedMethodsPercent() : int
- Returns the percentage of methods that has been tested.
- getTestedTraitsPercent() : int
- Returns the percentage of traits that has been tested.
- getTraits() : array<string|int, mixed>
- Returns the traits of this node.
Properties
$children
protected
array<string|int, PHP_CodeCoverage_Report_Node>
$children
= array()
$classes
protected
array<string|int, mixed>
$classes
$directories
protected
array<string|int, PHP_CodeCoverage_Report_Node_Directory>
$directories
= array()
$files
protected
array<string|int, PHP_CodeCoverage_Report_Node_File>
$files
= array()
$functions
protected
array<string|int, mixed>
$functions
$id
protected
string
$id
$linesOfCode
protected
array<string|int, mixed>
$linesOfCode
=
ull
$name
protected
string
$name
$numClasses
protected
int
$numClasses
= -1
$numExecutableLines
protected
int
$numExecutableLines
= -1
$numExecutedLines
protected
int
$numExecutedLines
= -1
$numFiles
protected
int
$numFiles
= -1
$numFunctions
protected
int
$numFunctions
= -1
$numMethods
protected
int
$numMethods
= -1
$numTestedClasses
protected
int
$numTestedClasses
= -1
$numTestedFunctions
protected
int
$numTestedFunctions
= -1
$numTestedMethods
protected
int
$numTestedMethods
= -1
$numTestedTraits
protected
int
$numTestedTraits
= -1
$numTraits
protected
int
$numTraits
= -1
$parent
protected
PHP_CodeCoverage_Report_Node
$parent
$path
protected
string
$path
$pathArray
protected
array<string|int, mixed>
$pathArray
$traits
protected
array<string|int, mixed>
$traits
Methods
__construct()
Constructor.
public
__construct(string $name[, PHP_CodeCoverage_Report_Node $parent = null ]) : mixed
Parameters
- $name : string
- $parent : PHP_CodeCoverage_Report_Node = null
Return values
mixed —addDirectory()
Adds a new directory.
public
addDirectory(string $name) : PHP_CodeCoverage_Report_Node_Directory
Parameters
- $name : string
Return values
PHP_CodeCoverage_Report_Node_Directory —addFile()
Adds a new file.
public
addFile(string $name, array<string|int, mixed> $coverageData, array<string|int, mixed> $testData, bool $cacheTokens) : PHP_CodeCoverage_Report_Node_File
Parameters
- $name : string
- $coverageData : array<string|int, mixed>
- $testData : array<string|int, mixed>
- $cacheTokens : bool
Tags
Return values
PHP_CodeCoverage_Report_Node_File —count()
Returns the number of files in/under this node.
public
count() : int
Return values
int —getChildNodes()
Returns the child nodes of this node.
public
getChildNodes() : array<string|int, mixed>
Return values
array<string|int, mixed> —getClasses()
Returns the classes of this node.
public
getClasses() : array<string|int, mixed>
Return values
array<string|int, mixed> —getClassesAndTraits()
Returns the classes and traits of this node.
public
getClassesAndTraits() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getDirectories()
Returns the directories in this directory.
public
getDirectories() : array<string|int, mixed>
Return values
array<string|int, mixed> —getFiles()
Returns the files in this directory.
public
getFiles() : array<string|int, mixed>
Return values
array<string|int, mixed> —getFunctions()
Returns the functions of this node.
public
getFunctions() : array<string|int, mixed>
Return values
array<string|int, mixed> —getId()
public
getId() : string
Return values
string —getIterator()
Returns an iterator for this node.
public
getIterator() : RecursiveIteratorIterator
Return values
RecursiveIteratorIterator —getLineExecutedPercent()
Returns the percentage of executed lines.
public
getLineExecutedPercent([bool $asString = true ]) : int
Parameters
- $asString : bool = true
Return values
int —getLinesOfCode()
Returns the LOC/CLOC/NCLOC of this node.
public
getLinesOfCode() : array<string|int, mixed>
Return values
array<string|int, mixed> —getName()
public
getName() : string
Return values
string —getNumClasses()
Returns the number of classes.
public
getNumClasses() : int
Return values
int —getNumClassesAndTraits()
Returns the number of classes and traits.
public
getNumClassesAndTraits() : int
Tags
Return values
int —getNumExecutableLines()
Returns the number of executable lines.
public
getNumExecutableLines() : int
Return values
int —getNumExecutedLines()
Returns the number of executed lines.
public
getNumExecutedLines() : int
Return values
int —getNumFunctions()
Returns the number of functions.
public
getNumFunctions() : int
Return values
int —getNumMethods()
Returns the number of methods.
public
getNumMethods() : int
Return values
int —getNumTestedClasses()
Returns the number of tested classes.
public
getNumTestedClasses() : int
Return values
int —getNumTestedClassesAndTraits()
Returns the number of tested classes and traits.
public
getNumTestedClassesAndTraits() : int
Tags
Return values
int —getNumTestedFunctions()
Returns the number of tested functions.
public
getNumTestedFunctions() : int
Return values
int —getNumTestedMethods()
Returns the number of tested methods.
public
getNumTestedMethods() : int
Return values
int —getNumTestedTraits()
Returns the number of tested traits.
public
getNumTestedTraits() : int
Return values
int —getNumTraits()
Returns the number of traits.
public
getNumTraits() : int
Return values
int —getParent()
public
getParent() : PHP_CodeCoverage_Report_Node
Return values
PHP_CodeCoverage_Report_Node —getPath()
public
getPath() : string
Return values
string —getPathAsArray()
public
getPathAsArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —getTestedClassesAndTraitsPercent()
Returns the percentage of traits that has been tested.
public
getTestedClassesAndTraitsPercent([bool $asString = true ]) : int
Parameters
- $asString : bool = true
Tags
Return values
int —getTestedClassesPercent()
Returns the percentage of classes that has been tested.
public
getTestedClassesPercent([bool $asString = true ]) : int
Parameters
- $asString : bool = true
Return values
int —getTestedMethodsPercent()
Returns the percentage of methods that has been tested.
public
getTestedMethodsPercent([bool $asString = true ]) : int
Parameters
- $asString : bool = true
Return values
int —getTestedTraitsPercent()
Returns the percentage of traits that has been tested.
public
getTestedTraitsPercent([bool $asString = true ]) : int
Parameters
- $asString : bool = true
Return values
int —getTraits()
Returns the traits of this node.
public
getTraits() : array<string|int, mixed>