ProductImage::getTimestamp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
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