Documentation

PHP_CodeCoverage_Report_Node
in package
implements Countable

Base class for nodes in the code coverage information tree.

Tags
since

Class available since Release 1.1.0

Interfaces, Classes and Traits

Countable

Table of Contents

$id  : string
$name  : string
$parent  : PHP_CodeCoverage_Report_Node
$path  : string
$pathArray  : array<string|int, mixed>
__construct()  : mixed
Constructor.
getClasses()  : array<string|int, mixed>
Returns the classes of this node.
getClassesAndTraits()  : array<string|int, mixed>
Returns the classes and traits of this node.
getFunctions()  : array<string|int, mixed>
Returns the functions of this node.
getId()  : string
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

$id

protected string $id

$name

protected string $name

$path

protected string $path

$pathArray

protected array<string|int, mixed> $pathArray

Methods

getClasses()

Returns the classes of this node.

public abstract 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
since

Method available since Release 1.2.0

Return values
array<string|int, mixed>

getFunctions()

Returns the functions of this node.

public abstract getFunctions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getId()

public getId() : string
Return values
string

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 abstract 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 abstract getNumClasses() : int
Return values
int

getNumClassesAndTraits()

Returns the number of classes and traits.

public getNumClassesAndTraits() : int
Tags
since

Method available since Release 1.2.0

Return values
int

getNumExecutableLines()

Returns the number of executable lines.

public abstract getNumExecutableLines() : int
Return values
int

getNumExecutedLines()

Returns the number of executed lines.

public abstract getNumExecutedLines() : int
Return values
int

getNumFunctions()

Returns the number of functions.

public abstract getNumFunctions() : int
Return values
int

getNumMethods()

Returns the number of methods.

public abstract getNumMethods() : int
Return values
int

getNumTestedClasses()

Returns the number of tested classes.

public abstract getNumTestedClasses() : int
Return values
int

getNumTestedClassesAndTraits()

Returns the number of tested classes and traits.

public getNumTestedClassesAndTraits() : int
Tags
since

Method available since Release 1.2.0

Return values
int

getNumTestedFunctions()

Returns the number of tested functions.

public abstract getNumTestedFunctions() : int
Return values
int

getNumTestedMethods()

Returns the number of tested methods.

public abstract getNumTestedMethods() : int
Return values
int

getNumTestedTraits()

Returns the number of tested traits.

public abstract getNumTestedTraits() : int
Return values
int

getNumTraits()

Returns the number of traits.

public abstract getNumTraits() : int
Return values
int

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
since

Method available since Release 1.2.0

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 abstract getTraits() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results