src/Entity/LegacyEmploye.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LegacyEmployeRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=LegacyEmployeRepository::class)
  7. */
  8. class LegacyEmploye
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\Column(type="string", length=255)
  18. */
  19. private $firstName;
  20. /**
  21. * @ORM\Column(type="string", length=255)
  22. */
  23. private $lastName;
  24. /**
  25. * @ORM\Column(type="integer")
  26. */
  27. private $legacyId;
  28. /**
  29. * @ORM\Column(type="date", nullable=true)
  30. */
  31. private $birthDate;
  32. /**
  33. * @ORM\ManyToOne(targetEntity=Contact::class, inversedBy="legacyEmployes")
  34. */
  35. private $contact;
  36. public function getId(): ?int
  37. {
  38. return $this->id;
  39. }
  40. public function getFirstName(): ?string
  41. {
  42. return $this->firstName;
  43. }
  44. public function setFirstName(string $firstName): self
  45. {
  46. $this->firstName = $firstName;
  47. return $this;
  48. }
  49. public function getLastName(): ?string
  50. {
  51. return $this->lastName;
  52. }
  53. public function setLastName(string $lastName): self
  54. {
  55. $this->lastName = $lastName;
  56. return $this;
  57. }
  58. public function getLegacyId(): ?int
  59. {
  60. return $this->legacyId;
  61. }
  62. public function setLegacyId(int $legacyId): self
  63. {
  64. $this->legacyId = $legacyId;
  65. return $this;
  66. }
  67. public function getBirthDate(): ?\DateTimeInterface
  68. {
  69. return $this->birthDate;
  70. }
  71. public function setBirthDate(?\DateTimeInterface $birthDate): self
  72. {
  73. $this->birthDate = $birthDate;
  74. return $this;
  75. }
  76. public function getContact(): ?Contact
  77. {
  78. return $this->contact;
  79. }
  80. public function setContact(?Contact $contact): self
  81. {
  82. $this->contact = $contact;
  83. return $this;
  84. }
  85. }