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

Contact::getId()   A

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