Schema   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 22
ccs 7
cts 7
cp 1
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getLocation() 0 3 1
A getNamespace() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Eclipxe\XmlSchemaValidator;
6
7
/**
8
 * Schema immutable object, used by SchemaValidator and Schemas
9
 */
10
class Schema
11
{
12
    /** @var string */
13
    private $namespace;
14
15
    /** @var string */
16
    private $location;
17
18 1
    public function __construct(string $namespace, string $location)
19
    {
20 1
        $this->namespace = $namespace;
21 1
        $this->location = $location;
22
    }
23
24 1
    public function getNamespace(): string
25
    {
26 1
        return $this->namespace;
27
    }
28
29 1
    public function getLocation(): string
30
    {
31 1
        return $this->location;
32
    }
33
}
34