Section.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?php
  2. use Doctrine\Common\Collections\ArrayCollection;
  3. use Doctrine\Common\Collections\Collection;
  4. /**
  5. * @Entity @Table(name="sections")
  6. */
  7. class Section
  8. {
  9. /**
  10. * @Id @Column(type="integer") @GeneratedValue
  11. */
  12. private $id;
  13. /**
  14. * @var string
  15. *
  16. * @Column(type="string")
  17. */
  18. private $name;
  19. /**
  20. * @var string
  21. *
  22. * @Column(type="string")
  23. */
  24. private $locomotive_series;
  25. /**
  26. * @var string
  27. *
  28. * @Column(type="string")
  29. */
  30. private $section_number;
  31. /**
  32. * @var string
  33. *
  34. * @Column(type="string")
  35. */
  36. private $section_subnumber;
  37. /**
  38. * @var string
  39. *
  40. * @Column(type="string")
  41. */
  42. private $dc_repair;
  43. /**
  44. * @var string
  45. *
  46. * @Column(type="string")
  47. */
  48. private $type_repair;
  49. /**
  50. * @var datetime
  51. *
  52. * @Column(type="datetime")
  53. */
  54. private $date_start_repair;
  55. public function getId()
  56. {
  57. return $this->id;
  58. }
  59. public function getName(): string
  60. {
  61. return $this->name;
  62. }
  63. public function setName(string $name): self
  64. {
  65. $this->name = $name;
  66. return $this;
  67. }
  68. public function getLocomotiveSeries()
  69. {
  70. return $this->locomotive_series;
  71. }
  72. public function setLocomotiveSeries(string $locomotive_series): self
  73. {
  74. $this->locomotive_series = $locomotive_series;
  75. return $this;
  76. }
  77. public function getSectionNumber()
  78. {
  79. return $this->section_number;
  80. }
  81. public function setSectionNumber(string $section_number): self
  82. {
  83. $this->section_number = $section_number;
  84. return $this;
  85. }
  86. public function getSectionSubnumber(): string
  87. {
  88. return $this->section_subnumber;
  89. }
  90. public function setSectionSubnumber(string $section_subnumber): self
  91. {
  92. $this->section_subnumber = $section_subnumber;
  93. return $this;
  94. }
  95. public function getDcRepair(): string
  96. {
  97. return $this->dc_repair;
  98. }
  99. public function setDcRepair(string $dc_repair): self
  100. {
  101. $this->dc_repair = $dc_repair;
  102. return $this;
  103. }
  104. public function getTypeRepair(): string
  105. {
  106. return $this->type_repair;
  107. }
  108. public function setTypeRepair(string $type_repair): self
  109. {
  110. $this->type_repair = $type_repair;
  111. return $this;
  112. }
  113. public function getDateStartRepair(): \DateTimeInterface
  114. {
  115. return $this->date_start_repair;
  116. }
  117. public function setDateStartRepair(\DateTimeInterface $date_start_repair): self
  118. {
  119. $this->date_start_repair = $date_start_repair;
  120. return $this;
  121. }
  122. }