src/Entity/RequestBatchItem.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RequestBatchItemRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * RequestBatchItem
  7. *
  8. */
  9. #[ORM\Entity(repositoryClass: RequestBatchItemRepository::class)]
  10. #[ORM\Table(name: '`request_batch_item`')]
  11. class RequestBatchItem
  12. {
  13. #[ORM\Id]
  14. #[ORM\GeneratedValue(strategy:"AUTO")]
  15. #[ORM\Column(name:"id", type:"integer")]
  16. private $id;
  17. #[ORM\ManyToOne(targetEntity:"App\Entity\RequestBatch")]
  18. private $batch;
  19. #[ORM\Column(name:"cost_center", type:"string")]
  20. private $costCenter;
  21. #[ORM\Column(name:"cost_center_name", type:"string", length:255, nullable:true)]
  22. private $costCenterName;
  23. #[ORM\Column(name:"document", type:"string", length:255, nullable:true)]
  24. private $amount;
  25. #[ORM\Column(name:"started_at", type:"datetime", nullable:true)]
  26. private $startedAt;
  27. #[ORM\Column(name:"finished_at", type:"datetime", nullable:true)]
  28. private $finishedAt;
  29. /**
  30. * Get id
  31. *
  32. * @return int
  33. */
  34. public function getId()
  35. {
  36. return $this->id;
  37. }
  38. /**
  39. * Set batch
  40. *
  41. * @param RequestBatch $batch
  42. *
  43. * @return RequestBatchItem
  44. */
  45. public function setBatch($batch)
  46. {
  47. $this->batch = $batch;
  48. return $this;
  49. }
  50. /**
  51. * Get batch
  52. *
  53. * @return RequestBatch
  54. */
  55. public function getBatch()
  56. {
  57. return $this->batch;
  58. }
  59. /**
  60. * @return string
  61. */
  62. public function getCostCenter(): string
  63. {
  64. return $this->costCenter;
  65. }
  66. /**
  67. * @param string $costCenter
  68. */
  69. public function setCostCenter(string $costCenter): void
  70. {
  71. $this->costCenter = $costCenter;
  72. }
  73. /**
  74. * @return string
  75. */
  76. public function getCostCenterName(): string
  77. {
  78. return $this->costCenterName;
  79. }
  80. /**
  81. * @param string $costCenterName
  82. */
  83. public function setCostCenterName(string $costCenterName): void
  84. {
  85. $this->costCenterName = $costCenterName;
  86. }
  87. /**
  88. * @return string
  89. */
  90. public function getAmount(): string
  91. {
  92. return $this->amount;
  93. }
  94. /**
  95. * @param string $amount
  96. */
  97. public function setAmount(string $amount): void
  98. {
  99. $this->amount = $amount;
  100. }
  101. /**
  102. * Set startedAt
  103. *
  104. * @param \DateTime $startedAt
  105. *
  106. * @return RequestBatchItem
  107. */
  108. public function setStartedAt($startedAt)
  109. {
  110. $this->startedAt = $startedAt;
  111. return $this;
  112. }
  113. /**
  114. * Get startedAt
  115. *
  116. * @return \DateTime
  117. */
  118. public function getStartedAt()
  119. {
  120. return $this->startedAt;
  121. }
  122. /**
  123. * Set finishedAt
  124. *
  125. * @param \DateTime $finishedAt
  126. *
  127. * @return RequestBatchItem
  128. */
  129. public function setFinishedAt($finishedAt)
  130. {
  131. $this->finishedAt = $finishedAt;
  132. return $this;
  133. }
  134. /**
  135. * Get finishedAt
  136. *
  137. * @return \DateTime
  138. */
  139. public function getFinishedAt()
  140. {
  141. return $this->finishedAt;
  142. }
  143. /**
  144. * Set description
  145. *
  146. * @param string $description
  147. *
  148. * @return RequestBatchItem
  149. */
  150. public function setDescription($description)
  151. {
  152. $this->description = $description;
  153. return $this;
  154. }
  155. /**
  156. * Get description
  157. *
  158. * @return string
  159. */
  160. public function getDescription()
  161. {
  162. return $this->description;
  163. }
  164. }