1
|
|
|
<?php |
2
|
|
|
declare(strict_types=1); |
3
|
|
|
/** |
4
|
|
|
*/ |
5
|
|
|
|
6
|
|
|
namespace CommerceLeague\ActiveCampaign\Model; |
7
|
|
|
|
8
|
|
|
use CommerceLeague\ActiveCampaign\Api\Data\AbandonedInterface; |
9
|
|
|
use CommerceLeague\ActiveCampaign\Model\ResourceModel\Abandoned as AbandonedResource; |
10
|
|
|
use Magento\Framework\Model\AbstractModel; |
11
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* Class Abandoned |
14
|
|
|
*/ |
15
|
|
|
class Abandoned extends AbstractModel implements AbandonedInterface |
16
|
|
|
{ |
17
|
|
|
/** |
18
|
|
|
* @inheritDoc |
19
|
|
|
*/ |
20
|
|
|
protected function _construct() |
21
|
|
|
{ |
22
|
|
|
$this->_init(AbandonedResource::class); |
23
|
|
|
} |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* @inheritDoc |
27
|
|
|
*/ |
28
|
|
|
public function getId() |
29
|
|
|
{ |
30
|
|
|
return $this->_getData(self::ENTITY_ID); |
31
|
|
|
} |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @inheritDoc |
35
|
|
|
*/ |
36
|
|
|
public function setId($id) |
37
|
|
|
{ |
38
|
|
|
return $this->setData(self::ENTITY_ID, $id); |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @inheritDoc |
43
|
|
|
*/ |
44
|
|
|
public function getQuoteId() |
45
|
|
|
{ |
46
|
|
|
return $this->_getData(self::QUOTE_ID); |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @inheritDoc |
51
|
|
|
*/ |
52
|
|
|
public function setQuoteId($quoteId): AbandonedInterface |
53
|
|
|
{ |
54
|
|
|
return $this->setData(self::QUOTE_ID, $quoteId); |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @inheritDoc |
59
|
|
|
*/ |
60
|
|
|
public function getActiveCampaignId() |
61
|
|
|
{ |
62
|
|
|
return $this->_getData(self::ACTIVE_CAMPAIGN_ID); |
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @inheritDoc |
67
|
|
|
*/ |
68
|
|
|
public function setActiveCampaignId($activeCampaignId): AbandonedInterface |
69
|
|
|
{ |
70
|
|
|
return $this->setData(self::ACTIVE_CAMPAIGN_ID, $activeCampaignId); |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @inheritDoc |
75
|
|
|
*/ |
76
|
|
|
public function getCreatedAt() |
77
|
|
|
{ |
78
|
|
|
return $this->_getData(self::CREATED_AT); |
79
|
|
|
} |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* @inheritDoc |
83
|
|
|
*/ |
84
|
|
|
public function setCreatedAt($createdAt): AbandonedInterface |
85
|
|
|
{ |
86
|
|
|
return $this->setData(self::CREATED_AT, $createdAt); |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @inheritDoc |
91
|
|
|
*/ |
92
|
|
|
public function getUpdatedAt() |
93
|
|
|
{ |
94
|
|
|
return $this->_getData(self::UPDATED_AT); |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* @inheritDoc |
99
|
|
|
*/ |
100
|
|
|
public function setUpdatedAt($updatedAt): AbandonedInterface |
101
|
|
|
{ |
102
|
|
|
return $this->setData(self::UPDATED_AT, $updatedAt); |
103
|
|
|
} |
104
|
|
|
} |
105
|
|
|
|