Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 18 |
|
0.00% |
0 / 18 |
CRAP | |
0.00% |
0 / 1 |
| Referral | |
0.00% |
0 / 18 |
|
0.00% |
0 / 18 |
342 | |
0.00% |
0 / 1 |
| setDate | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getDate | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setIsUsed | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getIsUsed | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setReferralCode | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getReferralCode | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setReferrerCode | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getReferrerCode | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setTypeNum | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getTypeNum | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setUsedDate | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getUsedDate | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setCustomerFullName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getCustomerFullName | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setPhone | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getPhone | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| setId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| getId | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace BuyerKiosk\Core; |
| 4 | |
| 5 | /** |
| 6 | * Referral |
| 7 | * |
| 8 | * Represents a single customer referral. |
| 9 | * |
| 10 | * @package BuyerKiosk\Core |
| 11 | */ |
| 12 | class Referral { |
| 13 | public $id; |
| 14 | public $typeNum; |
| 15 | public $date; |
| 16 | public $referralCode; |
| 17 | public $referrerCode; |
| 18 | public $isUsed; |
| 19 | public $usedDate; |
| 20 | public $customerFullName; |
| 21 | public $phone; |
| 22 | |
| 23 | /** |
| 24 | * @param mixed $date |
| 25 | */ |
| 26 | public function setDate($date) |
| 27 | { |
| 28 | $this->date = $date; |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * @return mixed |
| 33 | */ |
| 34 | public function getDate() |
| 35 | { |
| 36 | return $this->date; |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * @param mixed $isUsed |
| 41 | */ |
| 42 | public function setIsUsed($isUsed) |
| 43 | { |
| 44 | $this->isUsed = $isUsed; |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * @return mixed |
| 49 | */ |
| 50 | public function getIsUsed() |
| 51 | { |
| 52 | return $this->isUsed; |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * @param mixed $referralCode |
| 57 | */ |
| 58 | public function setReferralCode($referralCode) |
| 59 | { |
| 60 | $this->referralCode = $referralCode; |
| 61 | } |
| 62 | |
| 63 | /** |
| 64 | * @return mixed |
| 65 | */ |
| 66 | public function getReferralCode() |
| 67 | { |
| 68 | return $this->referralCode; |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * @param mixed $referrerCode |
| 73 | */ |
| 74 | public function setReferrerCode($referrerCode) |
| 75 | { |
| 76 | $this->referrerCode = $referrerCode; |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * @return mixed |
| 81 | */ |
| 82 | public function getReferrerCode() |
| 83 | { |
| 84 | return $this->referrerCode; |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * @param mixed $typeNum |
| 89 | */ |
| 90 | public function setTypeNum($typeNum) |
| 91 | { |
| 92 | $this->typeNum = $typeNum; |
| 93 | } |
| 94 | |
| 95 | /** |
| 96 | * @return mixed |
| 97 | */ |
| 98 | public function getTypeNum() |
| 99 | { |
| 100 | return $this->typeNum; |
| 101 | } |
| 102 | |
| 103 | /** |
| 104 | * @param mixed $usedDate |
| 105 | */ |
| 106 | public function setUsedDate($usedDate) |
| 107 | { |
| 108 | $this->usedDate = $usedDate; |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * @return mixed |
| 113 | */ |
| 114 | public function getUsedDate() |
| 115 | { |
| 116 | return $this->usedDate; |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * @param mixed $customerFullName |
| 121 | */ |
| 122 | public function setCustomerFullName($customerFullName) |
| 123 | { |
| 124 | $this->customerFullName = $customerFullName; |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * @return mixed |
| 129 | */ |
| 130 | public function getCustomerFullName() |
| 131 | { |
| 132 | return $this->customerFullName; |
| 133 | } |
| 134 | |
| 135 | /** |
| 136 | * @param mixed $phone |
| 137 | */ |
| 138 | public function setPhone($phone) |
| 139 | { |
| 140 | $this->phone = $phone; |
| 141 | } |
| 142 | |
| 143 | /** |
| 144 | * @return mixed |
| 145 | */ |
| 146 | public function getPhone() |
| 147 | { |
| 148 | return $this->phone; |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * @param mixed $id |
| 153 | */ |
| 154 | public function setId($id) |
| 155 | { |
| 156 | $this->id = $id; |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * @return mixed |
| 161 | */ |
| 162 | public function getId() |
| 163 | { |
| 164 | return $this->id; |
| 165 | } |
| 166 | } |