Completed
Push — master ( b8dae5...46c150 )
by Gabriel
01:13
created

ProductImage::_construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
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
    /**
15
     * Constructor.
16
     */
17
    protected function _construct()
18
    {
19
        $this->_init(\Stockbase\Integration\Model\ResourceModel\ProductImage::class);
20
    }
21
22
    /**
23
     * @return mixed
24
     */
25
    public function getEan()
26
    {
27
        return $this->getData('ean');
28
    }
29
30
    /**
31
     * @param string $ean
32
     */
33
    public function setEan($ean)
34
    {
35
        $this->setData('ean', $ean);
36
    }
37
38
    /**
39
     * @return mixed
40
     */
41
    public function getProductId()
42
    {
43
        return $this->getData('product_id');
44
    }
45
46
    /**
47
     * @param string $productId
48
     */
49
    public function setProductId($productId)
50
    {
51
        $this->setData('product_id', $productId);
52
    }
53
54
    /**
55
     * @return mixed
56
     */
57
    public function getImage()
58
    {
59
        return $this->getData('image');
60
    }
61
62
    /**
63
     * @param string $image
64
     */
65
    public function setImage($image)
66
    {
67
        $this->setData('image', $image);
68
    }
69
70
    /**
71
     * @return string
72
     */
73
    public function getTimestamp()
74
    {
75
        return $this->getData('timestamp');
76
    }
77
78
    /**
79
     * @param string $timestamp
80
     */
81
    public function setTimestamp($timestamp)
82
    {
83
        $this->setData('timestamp', $timestamp);
84
    }
85
86
}
87