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.

Customer::setCreatedAt()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
/**
4
 */
5
6
namespace CommerceLeague\ActiveCampaign\Model\ActiveCampaign;
7
8
use CommerceLeague\ActiveCampaign\Api\Data\CustomerInterface;
9
use CommerceLeague\ActiveCampaign\Model\ResourceModel\ActiveCampaign\Customer as CustomerResource;
10
use Magento\Framework\Model\AbstractModel;
11
12
/**
13
 * Class Customer
14
 */
15
class Customer extends AbstractModel implements CustomerInterface
16
{
17
    /**
18
     * @inheritDoc
19
     */
20
    protected function _construct()
21
    {
22
        $this->_init(CustomerResource::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 getMagentoCustomerId()
45
    {
46
        return $this->_getData(self::MAGENTO_CUSTOMER_ID);
47
    }
48
49
    /**
50
     * @inheritDoc
51
     */
52
    public function setMagentoCustomerId($magentoCustomerId): CustomerInterface
53
    {
54
        return $this->setData(self::MAGENTO_CUSTOMER_ID, $magentoCustomerId);
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): CustomerInterface
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): CustomerInterface
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): CustomerInterface
101
    {
102
        return $this->setData(self::UPDATED_AT, $updatedAt);
103
    }
104
}
105