ProductImage   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 74
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 74
ccs 0
cts 23
cp 0
rs 10
c 0
b 0
f 0
wmc 9
lcom 0
cbo 0

9 Methods

Rating   Name   Duplication   Size   Complexity  
A getEan() 0 4 1
A setEan() 0 4 1
A getProductId() 0 4 1
A setProductId() 0 4 1
A getImage() 0 4 1
A setImage() 0 4 1
A getTimestamp() 0 4 1
A setTimestamp() 0 4 1
A _construct() 0 4 1
1
<?php
2
3
namespace Stockbase\Integration\Model;
4
5
use Magento\Framework\Model\AbstractModel;
6
7
/**
8
 * Class ProductImage
9
 * @package Stockbase\Integration\Model
10
 */
11
class ProductImage extends AbstractModel
12
{
13
    /**
14
     * @return mixed
15
     */
16
    public function getEan()
17
    {
18
        return $this->getData('ean');
19
    }
20
21
    /**
22
     * @param string $ean
23
     */
24
    public function setEan($ean)
25
    {
26
        $this->setData('ean', $ean);
27
    }
28
29
    /**
30
     * @return mixed
31
     */
32
    public function getProductId()
33
    {
34
        return $this->getData('product_id');
35
    }
36
37
    /**
38
     * @param string $productId
39
     */
40
    public function setProductId($productId)
41
    {
42
        $this->setData('product_id', $productId);
43
    }
44
45
    /**
46
     * @return mixed
47
     */
48
    public function getImage()
49
    {
50
        return $this->getData('image');
51
    }
52
53
    /**
54
     * @param string $image
55
     */
56
    public function setImage($image)
57
    {
58
        $this->setData('image', $image);
59
    }
60
61
    /**
62
     * @return string
63
     */
64
    public function getTimestamp()
65
    {
66
        return $this->getData('timestamp');
67
    }
68
69
    /**
70
     * @param string $timestamp
71
     */
72
    public function setTimestamp($timestamp)
73
    {
74
        $this->setData('timestamp', $timestamp);
75
    }
76
77
    /**
78
     * Constructor.
79
     */
80
    protected function _construct()
81
    {
82
        $this->_init(\Stockbase\Integration\Model\ResourceModel\ProductImage::class);
83
    }
84
}
85