| Total Complexity | 6 |
| Total Lines | 36 |
| 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 | protected ?string $ip = null; |
||
| 15 | protected ?AffiliateReferralInterface $affiliateReferral = null; |
||
| 16 | |||
| 17 | public function __construct() |
||
| 18 | { |
||
| 19 | $this->createdAt = new \DateTime(); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function getId(): ?int |
||
| 23 | { |
||
| 24 | return $this->id; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getIp(): ?string |
||
| 28 | { |
||
| 29 | return $this->ip; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function setIp(?string $ip): void |
||
| 33 | { |
||
| 34 | $this->ip = $ip; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getAffiliateReferral(): ?AffiliateReferralInterface |
||
| 38 | { |
||
| 39 | return $this->affiliateReferral; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function setAffiliateReferral(?AffiliateReferralInterface $affiliateReferral): void |
||
| 45 | } |
||
| 46 | } |
||
| 47 |