src/Entity/Sms.php line 19

Open in your IDE?
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: parcel
  5. * Date: 10/16/18
  6. * Time: 4:22 PM
  7. */
  8. namespace App\Entity;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use JMS\Serializer\Annotation as Serializer;
  11. /**
  12. * @ORM\Entity(repositoryClass="App\Repository\SmsRepository")
  13. * @ORM\Table(name="sms")
  14. */
  15. class Sms {
  16. /**
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="IDENTITY")
  19. * @ORM\Column(type="integer")
  20. */
  21. private $id;
  22. /**
  23. * @var \App\Entity\Transaction
  24. * @Serializer\Type("App\Entity\Transaction")
  25. * @ORM\ManyToOne(targetEntity="Transaction")
  26. * @ORM\JoinColumns({
  27. * @ORM\JoinColumn(name="transaction_id", referencedColumnName="id")
  28. * })
  29. */
  30. private $transaction;
  31. /**
  32. * @ORM\Column(type="string")
  33. */
  34. private $status;
  35. /**
  36. * @ORM\Column(type="float")
  37. */
  38. private $amount;
  39. /**
  40. * @ORM\Column(type="text")
  41. */
  42. private $sms;
  43. /**
  44. * @ORM\Column(type="string", length=15)
  45. */
  46. private $recepient;
  47. /**
  48. * @var \App\Entity\Organization
  49. * @Serializer\Type("App\Entity\Organization")
  50. * @ORM\ManyToOne(targetEntity="App\Entity\Organization")
  51. * @ORM\JoinColumns({
  52. * @ORM\JoinColumn(name="organization_id", referencedColumnName="id")
  53. * })
  54. */
  55. private $organization;
  56. /**
  57. * @ORM\Column(type="datetime")
  58. */
  59. private $createdAt;
  60. /**
  61. * @var User
  62. * @ORM\ManyToOne(targetEntity="User")
  63. * @ORM\JoinColumns({
  64. * @ORM\JoinColumn(name="created_by", referencedColumnName="id")
  65. * })
  66. */
  67. private $createdBy;
  68. /**
  69. * @ORM\Column(type="integer", nullable=true)
  70. */
  71. private $statusCode;
  72. /**
  73. * @ORM\Column(type="boolean", nullable=true)
  74. */
  75. private $manuallySent;
  76. /**
  77. * @ORM\Column(type="string", nullable=false)
  78. */
  79. private $action;
  80. /**
  81. * @ORM\Column(type="string")
  82. */
  83. private mixed $messageId;
  84. /**
  85. * @return mixed
  86. */
  87. public function getId()
  88. {
  89. return $this->id;
  90. }
  91. /**
  92. * @param mixed $id
  93. */
  94. public function setId($id)
  95. {
  96. $this->id = $id;
  97. }
  98. /**
  99. * @return Transaction
  100. */
  101. public function getTransaction()
  102. {
  103. return $this->transaction;
  104. }
  105. /**
  106. * @param Transaction $transaction
  107. */
  108. public function setTransaction($transaction)
  109. {
  110. $this->transaction = $transaction;
  111. }
  112. /**
  113. * @return mixed
  114. */
  115. public function getAmount()
  116. {
  117. return $this->amount;
  118. }
  119. /**
  120. * @param mixed $amount
  121. */
  122. public function setAmount($amount)
  123. {
  124. $this->amount = $amount;
  125. }
  126. /**
  127. * @return mixed
  128. */
  129. public function getSms()
  130. {
  131. return $this->sms;
  132. }
  133. /**
  134. * @param mixed $sms
  135. */
  136. public function setSms($sms)
  137. {
  138. $this->sms = $sms;
  139. }
  140. /**
  141. * @return Organization
  142. */
  143. public function getOrganization()
  144. {
  145. return $this->organization;
  146. }
  147. /**
  148. * @param Organization $organization
  149. */
  150. public function setOrganization($organization)
  151. {
  152. $this->organization = $organization;
  153. }
  154. /**
  155. * @return mixed
  156. */
  157. public function getCreatedAt()
  158. {
  159. return $this->createdAt;
  160. }
  161. /**
  162. * @param mixed $createdAt
  163. */
  164. public function setCreatedAt($createdAt)
  165. {
  166. $this->createdAt = $createdAt;
  167. }
  168. /**
  169. * @return User
  170. */
  171. public function getCreatedBy()
  172. {
  173. return $this->createdBy;
  174. }
  175. /**
  176. * @param User $createdBy
  177. */
  178. public function setCreatedBy($createdBy)
  179. {
  180. $this->createdBy = $createdBy;
  181. }
  182. /**
  183. * @return mixed
  184. */
  185. public function getStatus()
  186. {
  187. return $this->status;
  188. }
  189. /**
  190. * @param mixed $status
  191. */
  192. public function setStatus($status)
  193. {
  194. $this->status = $status;
  195. }
  196. /**
  197. * @return mixed
  198. */
  199. public function getRecepient()
  200. {
  201. return $this->recepient;
  202. }
  203. /**
  204. * @param mixed $recepient
  205. */
  206. public function setRecepient($recepient)
  207. {
  208. $this->recepient = $recepient;
  209. }
  210. /**
  211. * @return mixed
  212. */
  213. public function getStatusCode()
  214. {
  215. return $this->statusCode;
  216. }
  217. /**
  218. * @param mixed $statusCode
  219. */
  220. public function setStatusCode($statusCode): void
  221. {
  222. $this->statusCode = $statusCode;
  223. }
  224. /**
  225. * @return mixed
  226. */
  227. public function getManuallySent()
  228. {
  229. return $this->manuallySent;
  230. }
  231. /**
  232. * @param mixed $manuallySent
  233. */
  234. public function setManuallySent($manuallySent): void
  235. {
  236. $this->manuallySent = $manuallySent;
  237. }
  238. /**
  239. * @return mixed
  240. */
  241. public function getAction()
  242. {
  243. return $this->action;
  244. }
  245. /**
  246. * @param mixed $action
  247. */
  248. public function setAction($action): void
  249. {
  250. $this->action = $action;
  251. }
  252. /**
  253. * @return mixed
  254. */
  255. public function getMessageId()
  256. {
  257. return $this->messageId;
  258. }
  259. /**
  260. * @param mixed $messageId
  261. */
  262. public function setMessageId($messageId): void
  263. {
  264. $this->messageId = $messageId;
  265. }
  266. }