DiffMatchPatch\Patch::toText PHP Method

toText() public method

Take a list of patches and return a textual representation.
public toText ( PatchObject[] $patches ) : string
$patches PatchObject[] Array of PatchObjects.
return string Text representation of patches.
    public function toText($patches)
    {
        $text = '';
        foreach ($patches as $patch) {
            $text .= (string) $patch;
        }
        return $text;
    }