diff options
author | Andres Rey <[email protected]> | 2016-10-21 20:20:48 +0100 |
---|---|---|
committer | Andres Rey <[email protected]> | 2016-10-21 20:20:48 +0100 |
commit | 0c11d557755ddbbafeeccd71e2d70b5c1d1458ab (patch) | |
tree | fcef7e334ff98025c1b60e2a1b3600296097e45b /src/ReadabilityInterface.php | |
parent | fe73c4d7cf71023c4cc5654afb0aea47b179c084 (diff) |
Major refactor, Readability now is an extension of Element.
Diffstat (limited to 'src/ReadabilityInterface.php')
-rw-r--r-- | src/ReadabilityInterface.php | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/src/ReadabilityInterface.php b/src/ReadabilityInterface.php index e5ae9dd..7cb8110 100644 --- a/src/ReadabilityInterface.php +++ b/src/ReadabilityInterface.php @@ -2,12 +2,31 @@ namespace andreskrey\Readability; -interface ReadabilityInterface +use League\HTMLToMarkdown\ElementInterface; + +interface ReadabilityInterface extends ElementInterface { /** - * @param DOMElement $node + * @param string $value + * + * @return bool + */ + public function tagNameEqualsTo($value); + + /** + * @return bool */ - public function __construct($node); + public function hasSinglePNode(); + + /** + * @return int + */ + public function getNodeAncestors(); + + /** + * @return Readability|null + */ + public function getAllLinks(); /** * @return int @@ -30,9 +49,4 @@ interface ReadabilityInterface * @return int */ public function setContentScore($score); - - /** - * @return DOMElement|null - */ - public function getAllLinks(); } |