summaryrefslogtreecommitdiff
path: root/src/ReadabilityInterface.php
diff options
context:
space:
mode:
authorAndres Rey <[email protected]>2016-10-21 20:20:48 +0100
committerAndres Rey <[email protected]>2016-10-21 20:20:48 +0100
commit0c11d557755ddbbafeeccd71e2d70b5c1d1458ab (patch)
treefcef7e334ff98025c1b60e2a1b3600296097e45b /src/ReadabilityInterface.php
parentfe73c4d7cf71023c4cc5654afb0aea47b179c084 (diff)
Major refactor, Readability now is an extension of Element.
Diffstat (limited to 'src/ReadabilityInterface.php')
-rw-r--r--src/ReadabilityInterface.php30
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();
}