Total Complexity | 6 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class AffiliateReferralView implements AffiliateReferralViewInterface |
||
10 | { |
||
11 | use TimestampableTrait; |
||
12 | |||
13 | protected ?int $id = null; |
||
14 | |||
15 | protected ?string $ip = null; |
||
16 | |||
17 | protected ?AffiliateReferralInterface $affiliateReferral = null; |
||
18 | |||
19 | public function __construct() |
||
20 | { |
||
21 | $this->createdAt = new \DateTime(); |
||
22 | } |
||
23 | |||
24 | public function getId(): ?int |
||
25 | { |
||
26 | return $this->id; |
||
27 | } |
||
28 | |||
29 | public function getIp(): ?string |
||
30 | { |
||
31 | return $this->ip; |
||
32 | } |
||
33 | |||
34 | public function setIp(?string $ip): void |
||
35 | { |
||
36 | $this->ip = $ip; |
||
37 | } |
||
38 | |||
39 | public function getAffiliateReferral(): ?AffiliateReferralInterface |
||
40 | { |
||
41 | return $this->affiliateReferral; |
||
42 | } |
||
43 | |||
44 | public function setAffiliateReferral(?AffiliateReferralInterface $affiliateReferral): void |
||
47 | } |
||
48 | } |
||
49 |