LCOV Reports for PHP

BranchData
in package
implements Stringable

Provides details for branch coverage.

Interfaces, Classes, Traits and Enums

Stringable

Table of Contents

$blockNumber  : int
$branchNumber  : int
$lineNumber  : int
$taken  : int
__construct()  : mixed
Creates a new branch data.
__toString()  : string
Returns a string representation of this object.
fromJson()  : self
Creates a new branch data from the specified JSON object.

Properties

Methods

__construct()

Creates a new branch data.

public __construct(int $lineNumber, int $blockNumber, int $branchNumber, int $taken) : mixed
Parameters
$lineNumber : int

The line number.

$blockNumber : int

The block number.

$branchNumber : int

The branch number.

$taken : int

A number indicating how often this branch was taken.

Return values
mixed —

__toString()

Returns a string representation of this object.

public __toString() : string
Return values
string —

The string representation of this object.

fromJson()

Creates a new branch data from the specified JSON object.

public static fromJson(object $json) : self
Parameters
$json : object

A JSON object representing a branch data.

Return values
self —

The instance corresponding to the specified JSON object.

Search results