LCOV Reports for PHP

LineCoverage
in package
implements Stringable

Provides the coverage data of lines.

Interfaces, Classes, Traits and Enums

Stringable

Table of Contents

$data  : array<string|int, mixed>
$found  : int
$hit  : int
__construct()  : mixed
Creates a new line coverage.
__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 line coverage.

public __construct(int $found, int $hit[, array<string|int, LineData> $data = [] ]) : mixed
Parameters
$found : int

The number of lines found.

$hit : int

The number of lines hit.

$data : array<string|int, LineData> = []

The coverage data.

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