DiffMatchPatch\Patch::__construct PHP Method

__construct() public method

public __construct ( Diff $diff = null, Match $match = null )
$diff Diff
$match Match
    public function __construct(Diff $diff = null, Match $match = null)
    {
        if (!isset($match)) {
            $match = new Match();
        }
        if (!isset($diff)) {
            $diff = new Diff();
        }
        $this->diff = $diff;
        $this->match = $match;
    }