diff options
author | Andres Rey <[email protected]> | 2016-11-14 17:04:18 +0000 |
---|---|---|
committer | Andres Rey <[email protected]> | 2016-11-14 17:04:18 +0000 |
commit | 8a564266a76bf6f456f16b3512116964348f994b (patch) | |
tree | 35c7370bcbdd8e5a2de6d238c92a4ce782e18998 /src | |
parent | 1c176922209b8a3002434a670b64a6f3683f812f (diff) |
Updated interface
Diffstat (limited to 'src')
-rw-r--r-- | src/ReadabilityInterface.php | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/ReadabilityInterface.php b/src/ReadabilityInterface.php index 5439cb2..5917454 100644 --- a/src/ReadabilityInterface.php +++ b/src/ReadabilityInterface.php @@ -44,4 +44,49 @@ interface ReadabilityInterface extends ElementInterface * @return int */ public function setContentScore($score); + + /** + * @param bool $normalize Normalize white space? + * @return string + */ + public function getTextContent($normalize); + + /** + * @param string $value + */ + public function setNodeTag($value); + + /** + * @return \DOMNode + */ + public function getDOMNode(); + + /** + * @param Readability $node + * + * @return Readability + */ + public function removeAndGetNext($node); + + /** + * @param Readability $originalNode + * @param bool $ignoreSelfAndKids + * + * @return Readability + */ + + public function getNextNode($originalNode, $ignoreSelfAndKids = false); + + /** + * @param Readability $node1 + * @param Readability $node2 + * + * @return bool + */ + public function compareNodes($node1, $node2); + + /** + * @param Readability $newNode + */ + public function replaceChild(Readability $newNode); } |