Completed
Push — master ( 05cc52...a48403 )
by Lars
01:56 queued 11s
created

SimpleHtmlDomNodeBlank::findMulti()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace voku\helper;
6
7
class SimpleHtmlDomNodeBlank extends AbstractSimpleHtmlDomNode implements SimpleHtmlDomNodeInterface
8
{
9
    /**
10
     * @param string $selector
11
     * @param int|null   $idx
12
     *
13
     * @return null
14
     */
15
    public function find(string $selector, $idx = null)
16
    {
17
        return null;
18
    }
19
20
    /**
21
     * Find one node with a CSS selector.
22
     *
23
     * @param string $selector
24
     *
25
     * @return null
26
     */
27
    public function findOne(string $selector)
28
    {
29
        return null;
30
    }
31
32
    /**
33
     * Find nodes with a CSS selector.
34
     *
35
     * @param string $selector
36
     *
37
     * @return SimpleHtmlDomInterface[]|SimpleHtmlDomNodeInterface
38
     */
39
    public function findMulti(string $selector): SimpleHtmlDomNodeInterface
40
    {
41
        return new self();
42
    }
43
44
    /**
45
     * @return string[]
46
     */
47
    public function innerHtml(): array
48
    {
49
        return [];
50
    }
51
52
    /**
53
     * alias for "$this->innerHtml()" (added for compatibly-reasons with v1.x)
54
     */
55
    public function innertext()
56
    {
57
        return [];
58
    }
59
60
    /**
61
     * alias for "$this->innerHtml()" (added for compatibly-reasons with v1.x)
62
     */
63
    public function outertext()
64
    {
65
        return [];
66
    }
67
68
    /**
69
     * @return string[]
70
     */
71 1
    public function text(): array
72
    {
73 1
        return [];
74
    }
75
}
76