XPathExpressionDiscoverer::getFilteredCrawler()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
namespace VDB\Spider\Discoverer;
3
4
use VDB\Spider\Discoverer\DiscovererInterface;
5
use VDB\Spider\Discoverer\CrawlerDiscoverer;
6
use VDB\Spider\Resource;
7
use VDB\Uri\Exception\UriSyntaxException;
8
use VDB\Uri\Uri;
9
use VDB\Spider\Uri\DiscoveredUri;
10
use VDB\Uri\UriInterface;
11
12
/**
13
 * @author Matthijs van den Bos
14
 * @copyright 2013 Matthijs van den Bos
15
 */
16
class XPathExpressionDiscoverer extends CrawlerDiscoverer
17
{
18
    protected function getFilteredCrawler(Resource $resource)
19
    {
20
        return $resource->getCrawler()->filterXPath($this->selector);
21
    }
22
}
23