Url::setType()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php declare(strict_types = 1);
2
3
namespace Ikoene\MarvelApiBundle\Entity;
4
5
/**
6
 * Class Url
7
 * @package Ikoene\MarvelApiBundle\Entity
8
 */
9
class Url
10
{
11
    /**
12
     * A text identifier for the URL.
13
     *
14
     * @var string
15
     */
16
    private $type;
17
18
    /**
19
     * A full URL (including scheme, domain, and path).
20
     *
21
     * @var string
22
     */
23
    private $url;
24
25
    /**
26
     * @return string
27
     */
28
    public function getType()
29
    {
30
        return $this->type;
31
    }
32
33
    /**
34
     * @param string $type
35
     */
36
    public function setType(string $type)
37
    {
38
        $this->type = $type;
39
    }
40
41
    /**
42
     * @return string
43
     */
44
    public function getUrl()
45
    {
46
        return $this->url;
47
    }
48
49
    /**
50
     * @param string $url
51
     */
52
    public function setUrl(string $url)
53
    {
54
        $this->url = $url;
55
    }
56
}
57