CoreFiles by mySites.guru
RendererInterface.php35 lines, 846 bytes, from Joomla_5.1.0-beta1-Beta-Full_Package.zip
Raw History Compare with 5.0.0-beta3
md5
5cbfc3bb718d49feb246b51d7477b6f6
sha1
cb90cdc8f545f96bd20efe8b20bbeceac04fd165
sha256
fd19e4818f19e79d054faeee0e68bf05f7c3cbf43034c7749e53120ba6931313
<?php

declare(strict_types=1);

namespace Jfcherng\Diff\Renderer;

use Jfcherng\Diff\Differ;
use Jfcherng\Diff\Exception\UnsupportedFunctionException;

/**
 * Renderer Interface.
 */
interface RendererInterface
{
    /**
     * Get the renderer result when the old and the new are the same.
     */
    public function getResultForIdenticals(): string;

    /**
     * Render the differ and return the result.
     *
     * @param Differ $differ the Differ object to be rendered
     */
    public function render(Differ $differ): string;

    /**
     * Render the differ array and return the result.
     *
     * @param array[][] $differArray the Differ array to be rendered
     *
     * @throws UnsupportedFunctionException if the renderer does not support this method
     */
    public function renderArray(array $differArray): string;
}

The same content is in 214 releases, Joomla 4.3.0-alpha1 to 6.3.0-alpha1. See them all, or every version of this file.