XmlResponse   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 4
c 1
b 0
f 1
dl 0
loc 8
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A crawler() 0 6 1
1
<?php
2
3
namespace Zenstruck\Browser\Response;
4
5
use Symfony\Component\DomCrawler\Crawler;
6
7
/**
8
 * @author Kevin Bond <[email protected]>
9
 */
10
final class XmlResponse extends DomResponse
11
{
12
    public function crawler(): Crawler
13
    {
14
        $dom = new \DOMDocument();
15
        $dom->loadXML($this->body());
16
17
        return new Crawler($dom);
18
    }
19
}
20