Test Failed
Push — master ( 3eb0e4...9196b6 )
by Ivan
02:13
created

SimpleUri   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getUri() 0 4 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Everlution\Navigation\Uri;
6
7
use Everlution\Navigation\Property\BaseProperty;
8
9
/**
10
 * Class SimpleUri.
11
 * @author Ivan Barlog <[email protected]>
12
 */
13
class SimpleUri extends BaseProperty implements Uri
14
{
15
    /** @var string */
16
    private $uri;
17
18
    public function __construct(string $uri)
19
    {
20
        $this->uri = $uri;
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function getUri(): string
27
    {
28
        return $this->uri;
29
    }
30
}
31