Link::getMatchers()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
ccs 6
cts 6
cp 1
rs 9.6666
cc 1
eloc 6
nc 1
nop 0
crap 1
1
<?php
2
3
namespace SP\Spiderling\Query;
4
5
/**
6
 * @author    Ivan Kerin <[email protected]>
7
 * @copyright 2015, Clippings Ltd.
8
 * @license   http://spdx.org/licenses/BSD-3-Clause
9
 */
10
class Link extends AbstractXPath
11
{
12
    const TYPE = 'self::a';
13
14
    /**
15
     * @return string
16
     */
17 5
    public function getType()
18
    {
19 5
        return Link::TYPE;
20
    }
21
22
    /**
23
     * @return array
24
     */
25 5
    public function getMatchers()
26
    {
27
        return [
28 5
            AbstractXPath::ID,
29 5
            AbstractXPath::TITLE,
30 5
            AbstractXPath::TEXT,
31 5
            AbstractXPath::IMG_ALT,
32 5
        ];
33
    }
34
}
35