src/Entity/StationDailyAccount.php line 19

Open in your IDE?
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: parcel
  5. * Date: 11/12/18
  6. * Time: 1:37 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="station_daily_account")
  14. */
  15. class StationDailyAccount {
  16. /**
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="AUTO")
  19. * @ORM\Column(type="integer")
  20. */
  21. private $id;
  22. /**
  23. * @ORM\Column(type="date")
  24. */
  25. private $accountDate;
  26. /**
  27. * @ORM\Column(type="boolean")
  28. */
  29. private $isClosed;
  30. /**
  31. * @var \App\Entity\User
  32. * @Serializer\Type("App\Entity\User")
  33. * @ORM\ManyToOne(targetEntity="App\Entity\User")
  34. * @ORM\JoinColumns({
  35. * @ORM\JoinColumn(name="closed_by", referencedColumnName="id", nullable=true)
  36. * })
  37. */
  38. private $closedBy;
  39. /**
  40. * @ORM\Column(type="datetime", nullable=true)
  41. */
  42. private $closingDate;
  43. /**
  44. * @ORM\Column(type="boolean")
  45. */
  46. private $isBanked;
  47. /**
  48. * @ORM\Column(type="datetime")
  49. */
  50. private $createdAt;
  51. /**
  52. * @var \App\Entity\User
  53. * @Serializer\Type("App\Entity\User")
  54. * @ORM\ManyToOne(targetEntity="App\Entity\User")
  55. * @ORM\JoinColumns({
  56. * @ORM\JoinColumn(name="created_by", referencedColumnName="id")
  57. * })
  58. */
  59. private $createdBy;
  60. /**
  61. * @var \App\Entity\Station
  62. * @Serializer\Type("App\Entity\Station")
  63. * @ORM\ManyToOne(targetEntity="App\Entity\Station")
  64. * @ORM\JoinColumns({
  65. * @ORM\JoinColumn(name="station_id", referencedColumnName="id")
  66. * })
  67. */
  68. private $station;
  69. /**
  70. * @return mixed
  71. */
  72. public function getId()
  73. {
  74. return $this->id;
  75. }
  76. /**
  77. * @param mixed $id
  78. */
  79. public function setId($id)
  80. {
  81. $this->id = $id;
  82. }
  83. /**
  84. * @return mixed
  85. */
  86. public function getAccountDate()
  87. {
  88. return $this->accountDate;
  89. }
  90. /**
  91. * @param mixed $accountDate
  92. */
  93. public function setAccountDate($accountDate)
  94. {
  95. $this->accountDate = $accountDate;
  96. }
  97. /**
  98. * @return mixed
  99. */
  100. public function getisClosed()
  101. {
  102. return $this->isClosed;
  103. }
  104. /**
  105. * @param mixed $isClosed
  106. */
  107. public function setIsClosed($isClosed)
  108. {
  109. $this->isClosed = $isClosed;
  110. }
  111. /**
  112. * @return User
  113. */
  114. public function getClosedBy()
  115. {
  116. return $this->closedBy;
  117. }
  118. /**
  119. * @param User $closedBy
  120. */
  121. public function setClosedBy($closedBy)
  122. {
  123. $this->closedBy = $closedBy;
  124. }
  125. /**
  126. * @return mixed
  127. */
  128. public function getClosingDate()
  129. {
  130. return $this->closingDate;
  131. }
  132. /**
  133. * @param mixed $closingDate
  134. */
  135. public function setClosingDate($closingDate)
  136. {
  137. $this->closingDate = $closingDate;
  138. }
  139. /**
  140. * @return mixed
  141. */
  142. public function getisBanked()
  143. {
  144. return $this->isBanked;
  145. }
  146. /**
  147. * @param mixed $isBanked
  148. */
  149. public function setIsBanked($isBanked)
  150. {
  151. $this->isBanked = $isBanked;
  152. }
  153. /**
  154. * @return mixed
  155. */
  156. public function getCreatedAt()
  157. {
  158. return $this->createdAt;
  159. }
  160. /**
  161. * @param mixed $createdAt
  162. */
  163. public function setCreatedAt($createdAt)
  164. {
  165. $this->createdAt = $createdAt;
  166. }
  167. /**
  168. * @return User
  169. */
  170. public function getCreatedBy()
  171. {
  172. return $this->createdBy;
  173. }
  174. /**
  175. * @param User $createdBy
  176. */
  177. public function setCreatedBy($createdBy)
  178. {
  179. $this->createdBy = $createdBy;
  180. }
  181. /**
  182. * @return Station
  183. */
  184. public function getStation()
  185. {
  186. return $this->station;
  187. }
  188. /**
  189. * @param Station $station
  190. */
  191. public function setStation($station)
  192. {
  193. $this->station = $station;
  194. }
  195. }