DiffMatchPatch\Diff::text1 PHP Method

text1() public method

Compute and return the source text (all equalities and deletions).
public text1 ( ) : string
return string Source text.
    public function text1()
    {
        $diffs = $this->getChanges();
        $text = '';
        foreach ($diffs as $change) {
            $op = $change[0];
            $data = $change[1];
            if ($op != self::INSERT) {
                $text .= $data;
            }
        }
        return $text;
    }