Passed
Pull Request — master (#64)
by
unknown
02:38
created

Thumbnail::setId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace MovingImage\Client\VMPro\Entity;
4
5
use MovingImage\Meta\Interfaces\ThumbnailInterface;
6
7
class Thumbnail implements ThumbnailInterface
8
{
9
    /**
10
     * @var int|null
11
     */
12
    private $id;
13
14
    /**
15
     * @var string|null
16
     */
17
    private $url;
18
19
    /**
20
     * @return int|null
21
     */
22
    public function getId()
23
    {
24
        return $this->id;
25
    }
26
27
    /**
28
     * @param int $id
29
     *
30
     * @return Thumbnail
31
     */
32
    public function setId($id)
33
    {
34
        $this->id = $id;
35
36
        return $this;
37
    }
38
39
    /**
40
     * @return string|null
41
     */
42
    public function getUrl()
43
    {
44
        return $this->url;
45
    }
46
47
    /**
48
     * @param string $url
49
     *
50
     * @return Thumbnail
51
     */
52
    public function setUrl($url)
53
    {
54
        $this->url = $url;
55
56
        return $this;
57
    }
58
}
59