UrlDTO   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A getUrl() 0 3 1
1
<?php
2
/**
3
 * File: UrlDTO.php
4
 *
5
 * @author      Maciej Sławik <[email protected]>
6
 * Github:      https://github.com/maciejslawik
7
 */
8
9
namespace MSlwk\Otomoto\Middleware\Webpage\Data;
10
11
/**
12
 * Class UrlDTO
13
 * @package MSlwk\Otomoto\Middleware\Webpage\Data
14
 */
15
class UrlDTO implements UrlDTOInterface
16
{
17
    /**
18
     * @var string
19
     */
20
    private $url;
21
22
    /**
23
     * UrlDTO constructor.
24
     * @param string $url
25
     */
26 25
    public function __construct(string $url)
27
    {
28 25
        $this->url = $url;
29 25
    }
30
31
    /**
32
     * @return string
33
     */
34 19
    public function getUrl(): string
35
    {
36 19
        return $this->url;
37
    }
38
}
39