Passed
Push — main ( f3d042...485060 )
by Carlos C
01:13 queued 12s
created

XsdRetriever::searchElements()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Eclipxe\XmlResourceRetriever;
6
7
class XsdRetriever extends AbstractXmlRetriever
8
{
9 1
    protected function searchNamespace(): string
10
    {
11 1
        return 'http://www.w3.org/2001/XMLSchema';
12
    }
13
14
    /**
15
     * @return array<int, array<string, string>>
16
     */
17 1
    protected function searchElements(): array
18
    {
19
        return [
20 1
            ['element' => 'import', 'attribute' => 'schemaLocation'],
21
            ['element' => 'include', 'attribute' => 'schemaLocation'],
22
        ];
23
    }
24
}
25