Skip to content

Commit 6c6d52a

Browse files
committed
Merge pull request #44 from caxy/enhancement/add-clear-content
Add method to clear content on AbstractDiff objects
2 parents 256f031 + 159e233 commit 6c6d52a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/Caxy/HtmlDiff/AbstractDiff.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,16 @@ public function getDifference()
264264
return $this->content;
265265
}
266266

267+
/**
268+
* Clears the diff content.
269+
*
270+
* @return void
271+
*/
272+
public function clearContent()
273+
{
274+
$this->content = null;
275+
}
276+
267277
/**
268278
* @param bool $boolean
269279
*

0 commit comments

Comments
 (0)