Passed
Push — master ( b3344e...e242a8 )
by
unknown
45s
created

Thumbnail   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 52
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 6 1
A getUrl() 0 4 1
A setUrl() 0 6 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