Documentation

DiffOnlyOutputBuilder
in package
implements DiffOutputBuilderInterface

Builds a diff string representation in a loose unified diff format listing only changes lines. Does not include line numbers.

Interfaces, Classes, Traits and Enums

DiffOutputBuilderInterface
Defines how an output builder should take a generated diff array and return a string representation of that diff.

Table of Contents

$header  : string
__construct()  : mixed
getDiff()  : string

Properties

Methods

__construct()

public __construct([string $header = "--- Original +++ New " ]) : mixed
Parameters
$header : string = "--- Original +++ New "
Return values
mixed

getDiff()

public getDiff(array<string|int, mixed> $diff) : string
Parameters
$diff : array<string|int, mixed>
Return values
string

Search results