src/Entity/AutomaticExpense.php line 19

Open in your IDE?
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: parcel
  5. * Date: 10/19/18
  6. * Time: 12:52 PM
  7. */
  8. namespace App\Entity;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use JMS\Serializer\Annotation as Serializer;
  11. /**
  12. * @ORM\Entity
  13. * @ORM\Table(name="automatic_expense")
  14. */
  15. class AutomaticExpense {
  16. /**
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="IDENTITY")
  19. * @ORM\Column(type="integer")
  20. */
  21. private $id;
  22. /**
  23. * @ORM\Column(type="float")
  24. */
  25. private $amount;
  26. /**
  27. * @ORM\Column(type="boolean")
  28. */
  29. private $isActive;
  30. /**
  31. * @ORM\Column(type="boolean")
  32. */
  33. private $isSms;
  34. /**
  35. * @ORM\Column(type="boolean")
  36. */
  37. private $isSystem;
  38. /**
  39. * @ORM\Column(type="string", length=45)
  40. */
  41. private $expenseName;
  42. /**
  43. * @ORM\Column(type="datetime")
  44. */
  45. private $createdAt;
  46. /**
  47. * @var App\Entity\User
  48. * @Serializer\Type("App\Entity\User")
  49. * @ORM\ManyToOne(targetEntity="App\Entity\User")
  50. * @ORM\JoinColumns({
  51. * @ORM\JoinColumn(name="created_by", referencedColumnName="id")
  52. * })
  53. */
  54. private $createdBy;
  55. /**
  56. * @return mixed
  57. */
  58. public function getId()
  59. {
  60. return $this->id;
  61. }
  62. /**
  63. * @param mixed $id
  64. */
  65. public function setId($id)
  66. {
  67. $this->id = $id;
  68. }
  69. /**
  70. * @return mixed
  71. */
  72. public function getAmount()
  73. {
  74. return $this->amount;
  75. }
  76. /**
  77. * @param mixed $amount
  78. */
  79. public function setAmount($amount)
  80. {
  81. $this->amount = $amount;
  82. }
  83. /**
  84. * @return mixed
  85. */
  86. public function getisActive()
  87. {
  88. return $this->isActive;
  89. }
  90. /**
  91. * @param mixed $isActive
  92. */
  93. public function setIsActive($isActive)
  94. {
  95. $this->isActive = $isActive;
  96. }
  97. /**
  98. * @return mixed
  99. */
  100. public function getisSms()
  101. {
  102. return $this->isSms;
  103. }
  104. /**
  105. * @param mixed $isSms
  106. */
  107. public function setIsSms($isSms)
  108. {
  109. $this->isSms = $isSms;
  110. }
  111. /**
  112. * @return mixed
  113. */
  114. public function getisSystem()
  115. {
  116. return $this->isSystem;
  117. }
  118. /**
  119. * @param mixed $isSystem
  120. */
  121. public function setIsSystem($isSystem)
  122. {
  123. $this->isSystem = $isSystem;
  124. }
  125. /**
  126. * @return mixed
  127. */
  128. public function getExpenseName()
  129. {
  130. return $this->expenseName;
  131. }
  132. /**
  133. * @param mixed $expenseName
  134. */
  135. public function setExpenseName($expenseName)
  136. {
  137. $this->expenseName = $expenseName;
  138. }
  139. /**
  140. * @return mixed
  141. */
  142. public function getCreatedAt()
  143. {
  144. return $this->createdAt;
  145. }
  146. /**
  147. * @param mixed $createdAt
  148. */
  149. public function setCreatedAt($createdAt)
  150. {
  151. $this->createdAt = $createdAt;
  152. }
  153. /**
  154. * @return User
  155. */
  156. public function getCreatedBy()
  157. {
  158. return $this->createdBy;
  159. }
  160. /**
  161. * @param User $createdBy
  162. */
  163. public function setCreatedBy($createdBy)
  164. {
  165. $this->createdBy = $createdBy;
  166. }
  167. }