XsdRetriever   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 15
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A searchNamespace() 0 3 1
A searchElements() 0 5 1
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 1
        return [
20 1
            ['element' => 'import', 'attribute' => 'schemaLocation'],
21 1
            ['element' => 'include', 'attribute' => 'schemaLocation'],
22 1
        ];
23
    }
24
}
25