src/Entity/Etr.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity
  6. * @ORM\Table(name="etr")
  7. */
  8. class Etr {
  9. /**
  10. * @ORM\Id
  11. * @ORM\GeneratedValue(strategy="AUTO")
  12. * @ORM\Column(type="integer")
  13. */
  14. private int $id;
  15. /**
  16. * @ORM\Column(type="integer")
  17. */
  18. private int $port;
  19. /**
  20. * @ORM\Column(type="string")
  21. */
  22. private string $com;
  23. /**
  24. * @ORM\Column(type="string")
  25. */
  26. private string $serialNumber;
  27. /**
  28. * @ORM\Column(type="string")
  29. */
  30. private string $location;
  31. /**
  32. * @ORM\Column(type="boolean")
  33. */
  34. private bool $isDefault;
  35. /**
  36. * @ORM\Column(type="datetime")
  37. */
  38. private \DateTime $createdAt;
  39. public function getId(): int
  40. {
  41. return $this->id;
  42. }
  43. public function getPort(): int
  44. {
  45. return $this->port;
  46. }
  47. public function setPort(int $port): void
  48. {
  49. $this->port = $port;
  50. }
  51. public function getCom(): string
  52. {
  53. return $this->com;
  54. }
  55. public function setCom(string $com): void
  56. {
  57. $this->com = $com;
  58. }
  59. public function getSerialNumber(): string
  60. {
  61. return $this->serialNumber;
  62. }
  63. public function setSerialNumber(string $serialNumber): void
  64. {
  65. $this->serialNumber = $serialNumber;
  66. }
  67. public function getLocation(): string
  68. {
  69. return $this->location;
  70. }
  71. public function setLocation(string $location): void
  72. {
  73. $this->location = $location;
  74. }
  75. public function isDefault(): bool
  76. {
  77. return $this->isDefault;
  78. }
  79. public function setIsDefault(bool $isDefault): void
  80. {
  81. $this->isDefault = $isDefault;
  82. }
  83. public function getCreatedAt(): \DateTime
  84. {
  85. return $this->createdAt;
  86. }
  87. public function setCreatedAt(\DateTime $createdAt): void
  88. {
  89. $this->createdAt = $createdAt;
  90. }
  91. }