ProductImage   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 79
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 60%
Metric Value
wmc 8
lcom 0
cbo 1
dl 0
loc 79
ccs 12
cts 20
cp 0.6
rs 10

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getImageId() 0 4 1
A getLabel() 0 4 1
A getFileName() 0 4 1
A getProductId() 0 4 1
A setImageId() 0 5 1
A setLabel() 0 5 1
A setFileName() 0 5 1
A setProductId() 0 5 1
1
<?php
2
3
namespace SpeckCatalog\Model;
4
5
class ProductImage extends AbstractModel
6
{
7
    protected $imageId;
8
    protected $label;
9
    protected $fileName;
10
    protected $productId;
11
12
    /**
13
     * @return imageId
14
     */
15
    public function getImageId()
16
    {
17
        return $this->imageId;
18
    }
19
20
    /**
21
     * @param $imageId
22
     * @return self
23
     */
24 2
    public function setImageId($imageId)
25
    {
26 2
        $this->imageId = $imageId;
27 2
        return $this;
28
    }
29
30
    /**
31
     * @return label
32
     */
33
    public function getLabel()
34
    {
35
        return $this->label;
36
    }
37
38
    /**
39
     * @param $label
40
     * @return self
41
     */
42 2
    public function setLabel($label)
43
    {
44 2
        $this->label = $label;
45 2
        return $this;
46
    }
47
48
    /**
49
     * @return fileName
50
     */
51
    public function getFileName()
52
    {
53
        return $this->fileName;
54
    }
55
56
    /**
57
     * @param $fileName
58
     * @return self
59
     */
60 2
    public function setFileName($fileName)
61
    {
62 2
        $this->fileName = $fileName;
63 2
        return $this;
64
    }
65
66
    /**
67
     * @return productId
68
     */
69
    public function getProductId()
70
    {
71
        return $this->productId;
72
    }
73
74
    /**
75
     * @param $productId
76
     * @return self
77
     */
78 2
    public function setProductId($productId)
79
    {
80 2
        $this->productId = $productId;
81 2
        return $this;
82
    }
83
}
84