src/AdminBundle/Entity/DriverHistoryTimelogs.php line 13

Open in your IDE?
  1. <?php
  2. namespace AdminBundle\Entity;
  3. use DateTime;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * DriverHistoryTimelogs
  7. */
  8. #[ORM\Table(name: 'driver_history_timelogs')]
  9. #[ORM\Entity(repositoryClass: \AdminBundle\Repository\DriverHistoryTimelogsRepository::class)]
  10. class DriverHistoryTimelogs
  11. {
  12. /**
  13. * @var int
  14. */
  15. #[ORM\Column(name: 'id', type: 'integer')]
  16. #[ORM\Id]
  17. #[ORM\GeneratedValue(strategy: 'AUTO')]
  18. private $id;
  19. /**
  20. * @var Driver
  21. */
  22. #[ORM\JoinColumn(name: 'driver_id', referencedColumnName: 'id', nullable: false)]
  23. #[ORM\ManyToOne(targetEntity: \AdminBundle\Entity\Driver::class, inversedBy: 'driverHistoryTimelogs')]
  24. private $driver;
  25. /**
  26. * @var DateTime
  27. */
  28. #[ORM\Column(name: 'date', type: 'date')]
  29. private $date;
  30. /**
  31. * @var \DateTime
  32. */
  33. #[ORM\Column(name: 'last_received_time', type: 'datetime')]
  34. private $lastReceivedTime;
  35. /**
  36. * @var int
  37. */
  38. #[ORM\Column(name: 'daily_total', type: 'integer')]
  39. private $dailyTotal;
  40. /**
  41. * @var int
  42. */
  43. #[ORM\Column(name: 'daily_total_app', type: 'integer')]
  44. private $dailyTotalApp;
  45. /**
  46. * Get the value of id
  47. *
  48. * @return int
  49. */
  50. public function getId()
  51. {
  52. return $this->id;
  53. }
  54. /**
  55. * Get the value of driver
  56. *
  57. * @return Driver
  58. */
  59. public function getDriver()
  60. {
  61. return $this->driver;
  62. }
  63. /**
  64. * Set the value of driver
  65. *
  66. * @param Driver $driver
  67. *
  68. * @return DriverHistoryTimelogs
  69. */
  70. public function setDriver(Driver $driver)
  71. {
  72. $this->driver = $driver;
  73. return $this;
  74. }
  75. /**
  76. * Get the value of lastReceivedTime
  77. *
  78. * @return DateTime
  79. */
  80. public function getLastReceivedTime()
  81. {
  82. return $this->lastReceivedTime;
  83. }
  84. /**
  85. * Set the value of lastReceivedTime
  86. *
  87. * @param DateTime $lastReceivedTime
  88. *
  89. * @return DriverHistoryTimelogs
  90. */
  91. public function setLastReceivedTime(DateTime $lastReceivedTime)
  92. {
  93. $this->lastReceivedTime = $lastReceivedTime;
  94. return $this;
  95. }
  96. /**
  97. * Get the value of dailyTotal
  98. *
  99. * @return int
  100. */
  101. public function getDailyTotal()
  102. {
  103. return $this->dailyTotal;
  104. }
  105. /**
  106. * Set the value of dailyTotal
  107. *
  108. * @param int $dailyTotal
  109. *
  110. * @return DriverHistoryTimelogs
  111. */
  112. public function setDailyTotal(int $dailyTotal)
  113. {
  114. $this->dailyTotal = $dailyTotal;
  115. return $this;
  116. }
  117. /**
  118. * Get the value of dailyTotalApp
  119. *
  120. * @return int
  121. */
  122. public function getDailyTotalApp()
  123. {
  124. return $this->dailyTotalApp;
  125. }
  126. /**
  127. * Set the value of dailyTotalApp
  128. *
  129. * @param int $dailyTotalApp
  130. *
  131. * @return DriverHistoryTimelogs
  132. */
  133. public function setDailyTotalApp(int $dailyTotalApp)
  134. {
  135. $this->dailyTotalApp = $dailyTotalApp;
  136. return $this;
  137. }
  138. /**
  139. * Get the value of date
  140. *
  141. * @return DateTime
  142. */
  143. public function getDate()
  144. {
  145. return $this->date;
  146. }
  147. /**
  148. * Set the value of date
  149. *
  150. * @param DateTime $date
  151. *
  152. * @return DriverHistoryTimelogs
  153. */
  154. public function setDate(DateTime $date)
  155. {
  156. $this->date = $date;
  157. return $this;
  158. }
  159. }