Schema::getLocation()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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