aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/league/html-to-markdown/src/ElementInterface.php
blob: d8477cfae432d0a78fe97d9f913e8faabf0c859e (plain) (blame)
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
<?php

declare(strict_types=1);

namespace League\HTMLToMarkdown;

interface ElementInterface
{
    public function isBlock(): bool;

    public function isText(): bool;

    public function isWhitespace(): bool;

    public function getTagName(): string;

    public function getValue(): string;

    public function hasParent(): bool;

    public function getParent(): ?ElementInterface;

    public function getNextSibling(): ?ElementInterface;

    public function getPreviousSibling(): ?ElementInterface;

    /**
     * @param string|string[] $tagNames
     */
    public function isDescendantOf($tagNames): bool;

    public function hasChildren(): bool;

    /**
     * @return ElementInterface[]
     */
    public function getChildren(): array;

    public function getNext(): ?ElementInterface;

    public function getSiblingPosition(): int;

    public function getChildrenAsString(): string;

    public function setFinalMarkdown(string $markdown): void;

    public function getListItemLevel(): int;

    public function getAttribute(string $name): string;
}