DiffMatchPatch\Diff::text2 PHP Method

text2() public method

Compute and return the destination text (all equalities and insertions).
public text2 ( ) : string
return string Destination text.
    public function text2()
    {
        $diffs = $this->getChanges();
        $text = '';
        foreach ($diffs as $change) {
            $op = $change[0];
            $data = $change[1];
            if ($op != self::DELETE) {
                $text .= $data;
            }
        }
        return $text;
    }