Total Complexity | 7 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
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::CONTACT_ID); |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @inheritDoc |
||
34 | */ |
||
35 | public function setId($id) |
||
36 | { |
||
37 | return $this->setData(self::CONTACT_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 |
||
70 | } |
||
71 | } |
||
72 |