GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 468920...acc64b )
by Andreas
04:19
created

Order   A

Complexity

Total Complexity 11

Size/Duplication

Total Lines 88
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 88
rs 10
c 0
b 0
f 0
wmc 11

11 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A getActiveCampaignId() 0 3 1
A setMagentoOrderId() 0 3 1
A _construct() 0 3 1
A setActiveCampaignId() 0 3 1
A setUpdatedAt() 0 3 1
A setId() 0 3 1
A setCreatedAt() 0 3 1
A getCreatedAt() 0 3 1
A getMagentoOrderId() 0 3 1
A getUpdatedAt() 0 3 1
1
<?php
2
declare(strict_types=1);
3
/**
4
 */
5
6
namespace CommerceLeague\ActiveCampaign\Model\ActiveCampaign;
7
8
use CommerceLeague\ActiveCampaign\Api\Data\OrderInterface;
9
use CommerceLeague\ActiveCampaign\Model\ResourceModel\ActiveCampaign\Order as OrderResource;
10
use Magento\Framework\Model\AbstractModel;
11
12
/**
13
 * Class Order
14
 */
15
class Order extends AbstractModel implements OrderInterface
16
{
17
    /**
18
     * @inheritDoc
19
     */
20
    protected function _construct()
21
    {
22
        $this->_init(OrderResource::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 getMagentoOrderId()
45
    {
46
        return $this->_getData(self::MAGENTO_ORDER_ID);
47
    }
48
49
    /**
50
     * @inheritDoc
51
     */
52
    public function setMagentoOrderId($magentoOrderId): OrderInterface
53
    {
54
        return $this->setData(self::MAGENTO_ORDER_ID, $magentoOrderId);
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): OrderInterface
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): OrderInterface
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): OrderInterface
101
    {
102
        return $this->setData(self::UPDATED_AT, $updatedAt);
103
    }
104
}
105