Url::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 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