forked from chrisboulton/php-diff
-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Mario edited this page Jul 23, 2020
·
3 revisions
<?php
declare(strict_types=1);
use jblond\Diff\Renderer\Html\SideBySide;
class CustomSideBySideextends SideBySide
{
/**
* Generates a string representation of the opening of a predefined table and its header with titles from options.
*
* @return string HTML code representation of a table's header.
*/
public function generateDiffHeader(): string
{
return <<<HTML
<table class="Differences DifferencesSideBySide">
<thead>
<tr>
<th colspan="4">This is my overridden header</th>
</tr>
</thead>
HTML;
}
}
//$renderer = new SideBySide();
$renderer = new CustomSideBySide();
echo $diff->Render($renderer);