Thumbnail   A
last analyzed

Complexity

Total Complexity 16

Size/Duplication

Total Lines 114
Duplicated Lines 0 %

Coupling/Cohesion

Components 2
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 16
lcom 2
cbo 1
dl 0
loc 114
ccs 35
cts 35
cp 1
rs 10
c 0
b 0
f 0

14 Methods

Rating   Name   Duplication   Size   Complexity  
A getCrop() 0 4 1
A setCrop() 0 4 1
A getResize() 0 4 1
A setResize() 0 4 1
A getKey() 0 4 1
A setKey() 0 4 1
A getX() 0 4 2
A setX() 0 4 1
A getY() 0 4 2
A setY() 0 4 1
A getWatermark() 0 4 1
A setWatermark() 0 4 1
A getSystem() 0 4 1
A setSystem() 0 4 1
1
<?php
2
3
namespace WebCMS\Entity;
4
5
use Doctrine\ORM\Mapping as orm;
6
7
/**
8
 * @orm\Entity
9
 * @author Tomáš Voslař <tomas.voslar at webcook.cz>
10
 */
11
class Thumbnail extends Entity
12
{
13
    /**
14
     * @ORM\Column(name="`key`")
15
     * @var String
16
     */
17
    private $key;
18
19
    /**
20
     * @ORM\Column(type="integer")
21
     * @var Int
22
     */
23
    private $x;
24
25
    /**
26
     * @ORM\Column(type="integer")
27
     * @var Int
28
     */
29
    private $y;
30
31
    /**
32
     * @ORM\Column(type="boolean")
33
     * @var Boolean
34
     */
35
    private $watermark;
36
37
    /**
38
     * @ORM\Column(type="boolean")
39
     * @var Boolean
40
     */
41
    private $system;
42
43
    /**
44
     * @ORM\Column(type="integer")
45
     * @var Int
46
     */
47
    private $resize;
48
49
    /**
50
     * @ORM\Column(type="boolean")
51
     * @var
52
     */
53
    private $crop;
54
55 3
    public function getCrop()
56
    {
57 3
        return $this->crop;
58
    }
59
60 4
    public function setCrop($crop)
61
    {
62 4
        $this->crop = $crop;
63 4
    }
64
65 3
    public function getResize()
66
    {
67 3
        return $this->resize;
68
    }
69
70 4
    public function setResize($resize)
71
    {
72 4
        $this->resize = $resize;
73 4
    }
74
75 4
    public function getKey()
76
    {
77 4
        return $this->key;
78
    }
79
80 4
    public function setKey($key)
81
    {
82 4
        $this->key = $key;
83 4
    }
84
85 3
    public function getX()
86
    {
87 3
        return $this->x == 0 ? null : $this->x;
88
    }
89
90 4
    public function setX($x)
91
    {
92 4
        $this->x = $x;
93 4
    }
94
95 3
    public function getY()
96
    {
97 3
        return $this->y == 0 ? null : $this->y;
98
    }
99
100 4
    public function setY($y)
101
    {
102 4
        $this->y = $y;
103 4
    }
104
105 3
    public function getWatermark()
106
    {
107 3
        return $this->watermark;
108
    }
109
110 4
    public function setWatermark($watermark)
111
    {
112 4
        $this->watermark = $watermark;
113 4
    }
114
115 1
    public function getSystem()
116
    {
117 1
        return $this->system;
118
    }
119
120 4
    public function setSystem($system)
121
    {
122 4
        $this->system = $system;
123 4
    }
124
}
125