Menu

## DiffOnlyOutputBuilder
in package
implements DiffOutputBuilderInterface

DiffOnlyOutputBuilder.php : 23

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

### Interfaces, Classes and Traits

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

#### $header

DiffOnlyOutputBuilder.php : 28
`private string $header`

### Methods

#### __construct()

DiffOnlyOutputBuilder.php : 30
`public __construct([string $header = "--- Original +++ New " ]) : mixed`

##### Parameters

$header : string = "--- Original +++ New "

##### Return values

mixed —

#### getDiff()

DiffOnlyOutputBuilder.php : 35
`public getDiff(array<string|int, mixed> $diff) : string`

##### Parameters

$diff : array<string|int, mixed>

##### Return values

string —

## Search results