Crawler   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 17
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getUri() 0 4 1
A isEmpty() 0 4 1
A croppedText() 0 4 1
1
<?php
2
3
/*
4
 * This is part of the webuni/srazy-api-client.
5
 *
6
 * (c) Martin Hasoň <[email protected]>
7
 * (c) Webuni s.r.o. <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace Webuni\Srazy;
14
15
use Symfony\Component\DomCrawler\Crawler as BaseCrawler;
16
17
class Crawler extends BaseCrawler
18
{
19
    public function getUri()
20
    {
21
        return $this->uri;
22
    }
23
24
    public function isEmpty()
25
    {
26
        return 0 === $this->count();
27
    }
28
29
    public function croppedText()
30
    {
31
        return trim($this->text());
32
    }
33
}
34