file-fetcher
Public Member Functions | List of all members
SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder Class Reference
Inheritance diagram for SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder:
SebastianBergmann\Diff\Output\AbstractChunkOutputBuilder SebastianBergmann\Diff\Output\DiffOutputBuilderInterface

Detailed Description

Builds a diff string representation in unified diff format in chunks.

Public Member Functions

 __construct (string $header="--- Original\n+++ New\n", bool $addLineNumbers=false)
 
 getDiff (array $diff)
 

Additional Inherited Members

- Protected Member Functions inherited from SebastianBergmann\Diff\Output\AbstractChunkOutputBuilder
 getCommonChunks (array $diff, int $lineThreshold=5)
 

Constructor & Destructor Documentation

◆ __construct()

SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder::__construct ( string  $header = "--- Original\n+++ New\n",
bool  $addLineNumbers = false 
)

Member Function Documentation

◆ getDiff()

SebastianBergmann\Diff\Output\UnifiedDiffOutputBuilder::getDiff ( array  $diff)

The documentation for this class was generated from the following file: