abstract class Merger implements MergerInterface

Merger abstract class.

Properties

protected $line

On going merge the first line

protected $next

On going merge the second line

protected $merged

Final merge result

Methods

__construct()

$line, $next and $merged variables were set.

string|null
start(string $line, string $next)

Get a merged line from the current line and the next line.

Details

at line 30
abstract __construct()

$line, $next and $merged variables were set.

at line 35
string|null start(string $line, string $next)

Get a merged line from the current line and the next line.

Parameters

string $line

The current line.

string $next

The next line.

Return Value

string|null

The method return a merged line or return null on failure.