]> git.mxchange.org Git - friendica.git/blob - vendor/league/html-to-markdown/src/ElementInterface.php
Merge pull request #3301 from annando/issue-3300
[friendica.git] / vendor / league / html-to-markdown / src / ElementInterface.php
1 <?php
2
3 namespace League\HTMLToMarkdown;
4
5 interface ElementInterface
6 {
7     /**
8      * @return bool
9      */
10     public function isBlock();
11
12     /**
13      * @return bool
14      */
15     public function isText();
16
17     /**
18      * @return bool
19      */
20     public function isWhitespace();
21
22     /**
23      * @return string
24      */
25     public function getTagName();
26
27     /**
28      * @return string
29      */
30     public function getValue();
31
32     /**
33      * @return ElementInterface|null
34      */
35     public function getParent();
36
37     /**
38      * @param string|string[] $tagNames
39      *
40      * @return bool
41      */
42     public function isDescendantOf($tagNames);
43
44     /**
45      * @return bool
46      */
47     public function hasChildren();
48
49     /**
50      * @return ElementInterface[]
51      */
52     public function getChildren();
53
54     /**
55      * @return ElementInterface|null
56      */
57     public function getNext();
58
59     /**
60      * @return int
61      */
62     public function getSiblingPosition();
63
64     /**
65      * @return string
66      */
67     public function getChildrenAsString();
68
69     /**
70      * @param string $markdown
71      */
72     public function setFinalMarkdown($markdown);
73
74     /**
75      * @param string $name
76      *
77      * @return string
78      */
79     public function getAttribute($name);
80 }