summaryrefslogtreecommitdiff
path: root/src/ReadabilityInterface.php
blob: 7cb8110a6cf94c598ee6a1b4e03501dc9aa54e27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php

namespace andreskrey\Readability;

use League\HTMLToMarkdown\ElementInterface;

interface ReadabilityInterface extends ElementInterface
{
    /**
     * @param string $value
     *
     * @return bool
     */
    public function tagNameEqualsTo($value);

    /**
     * @return bool
     */
    public function hasSinglePNode();

    /**
     * @return int
     */
    public function getNodeAncestors();

    /**
     * @return Readability|null
     */
    public function getAllLinks();

    /**
     * @return int
     */
    public function getContentScore();

    /**
     * @return Readability
     */
    public function initializeNode();

    /**
     * @return int
     */
    public function getClassWeight();

    /**
     * @param int $score
     *
     * @return int
     */
    public function setContentScore($score);
}