Url   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

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