src/Entity/Mpesa.php line 18

Open in your IDE?
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: parcel
  5. * Date: 11/1/18
  6. * Time: 7:50 AM
  7. */
  8. namespace App\Entity;
  9. use Doctrine\ORM\Mapping as ORM;
  10. /**
  11. * @ORM\Entity(repositoryClass="App\Repository\MpesaRepository")
  12. * @ORM\Table(name="mpesa")
  13. */
  14. class Mpesa {
  15. /**
  16. * @ORM\Id
  17. * @ORM\GeneratedValue(strategy="AUTO")
  18. * @ORM\Column(type="integer")
  19. */
  20. private $id;
  21. /**
  22. * @ORM\Column(type="string", name="transaction_id")
  23. */
  24. private $transactionId;
  25. /**
  26. * @ORM\Column(type="string", name="transaction_type")
  27. */
  28. private $transactionType;
  29. /**
  30. * @ORM\Column(type="string", name="transaction_time")
  31. */
  32. private $transactionTime;
  33. /**
  34. * @ORM\Column(type="float", name="transaction_amount")
  35. */
  36. private $transactionAmount;
  37. /**
  38. * @ORM\Column(type="string", name="ref_number")
  39. */
  40. private $refNumber;
  41. /**
  42. * @ORM\Column(type="integer", name="short_code")
  43. */
  44. private $shortCode;
  45. /**
  46. * @ORM\Column(type="float", name="balance")
  47. */
  48. private $balance;
  49. /**
  50. * @ORM\Column(type="string", name="msisdn")
  51. */
  52. private $msisdn;
  53. /**
  54. * @ORM\Column(type="string", name="first_name")
  55. */
  56. private $firstName;
  57. /**
  58. * @ORM\Column(type="string", name="middle_name")
  59. */
  60. private $middleName;
  61. /**
  62. * @ORM\Column(type="string", name="last_name")
  63. */
  64. private $lastName;
  65. /**
  66. * @ORM\Column(type="datetime")
  67. */
  68. private $createdAt;
  69. /**
  70. * @ORM\Column(type="boolean", name="is_used")
  71. */
  72. private $isUsed;
  73. /**
  74. * @return mixed
  75. */
  76. public function getId()
  77. {
  78. return $this->id;
  79. }
  80. /**
  81. * @param mixed $id
  82. */
  83. public function setId($id)
  84. {
  85. $this->id = $id;
  86. }
  87. /**
  88. * @return mixed
  89. */
  90. public function getTransactionId()
  91. {
  92. return $this->transactionId;
  93. }
  94. /**
  95. * @param mixed $transactionId
  96. */
  97. public function setTransactionId($transactionId)
  98. {
  99. $this->transactionId = $transactionId;
  100. }
  101. /**
  102. * @return mixed
  103. */
  104. public function getTransactionType()
  105. {
  106. return $this->transactionType;
  107. }
  108. /**
  109. * @param mixed $transactionType
  110. */
  111. public function setTransactionType($transactionType)
  112. {
  113. $this->transactionType = $transactionType;
  114. }
  115. /**
  116. * @return mixed
  117. */
  118. public function getTransactionTime()
  119. {
  120. return $this->transactionTime;
  121. }
  122. /**
  123. * @param mixed $transactionTime
  124. */
  125. public function setTransactionTime($transactionTime)
  126. {
  127. $this->transactionTime = $transactionTime;
  128. }
  129. /**
  130. * @return mixed
  131. */
  132. public function getTransactionAmount()
  133. {
  134. return $this->transactionAmount;
  135. }
  136. /**
  137. * @param mixed $transactionAmount
  138. */
  139. public function setTransactionAmount($transactionAmount)
  140. {
  141. $this->transactionAmount = $transactionAmount;
  142. }
  143. /**
  144. * @return mixed
  145. */
  146. public function getRefNumber()
  147. {
  148. return $this->refNumber;
  149. }
  150. /**
  151. * @param mixed $refNumber
  152. */
  153. public function setRefNumber($refNumber)
  154. {
  155. $this->refNumber = $refNumber;
  156. }
  157. /**
  158. * @return mixed
  159. */
  160. public function getShortCode()
  161. {
  162. return $this->shortCode;
  163. }
  164. /**
  165. * @param mixed $shortCode
  166. */
  167. public function setShortCode($shortCode)
  168. {
  169. $this->shortCode = $shortCode;
  170. }
  171. /**
  172. * @return mixed
  173. */
  174. public function getBalance()
  175. {
  176. return $this->balance;
  177. }
  178. /**
  179. * @param mixed $balance
  180. */
  181. public function setBalance($balance)
  182. {
  183. $this->balance = $balance;
  184. }
  185. /**
  186. * @return mixed
  187. */
  188. public function getMsisdn()
  189. {
  190. return $this->msisdn;
  191. }
  192. /**
  193. * @param mixed $msisdn
  194. */
  195. public function setMsisdn($msisdn)
  196. {
  197. $this->msisdn = $msisdn;
  198. }
  199. /**
  200. * @return mixed
  201. */
  202. public function getFirstName()
  203. {
  204. return $this->firstName;
  205. }
  206. /**
  207. * @param mixed $firstName
  208. */
  209. public function setFirstName($firstName)
  210. {
  211. $this->firstName = $firstName;
  212. }
  213. /**
  214. * @return mixed
  215. */
  216. public function getMiddleName()
  217. {
  218. return $this->middleName;
  219. }
  220. /**
  221. * @param mixed $middleName
  222. */
  223. public function setMiddleName($middleName)
  224. {
  225. $this->middleName = $middleName;
  226. }
  227. /**
  228. * @return mixed
  229. */
  230. public function getLastName()
  231. {
  232. return $this->lastName;
  233. }
  234. /**
  235. * @param mixed $lastName
  236. */
  237. public function setLastName($lastName)
  238. {
  239. $this->lastName = $lastName;
  240. }
  241. /**
  242. * @return mixed
  243. */
  244. public function getCreatedAt()
  245. {
  246. return $this->createdAt;
  247. }
  248. /**
  249. * @param mixed $createdAt
  250. */
  251. public function setCreatedAt($createdAt)
  252. {
  253. $this->createdAt = $createdAt;
  254. }
  255. /**
  256. * @return mixed
  257. */
  258. public function getIsUsed()
  259. {
  260. return $this->isUsed;
  261. }
  262. /**
  263. * @param mixed $isUsed
  264. */
  265. public function setIsUsed($isUsed): void
  266. {
  267. $this->isUsed = $isUsed;
  268. }
  269. public function __toString()
  270. {
  271. // TODO: Implement __toString() method.
  272. return $this->firstName.' '.$this->middleName.' '.$this->lastName;
  273. }
  274. }