src/Entity/Employee.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EmployeeRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: EmployeeRepository::class)]
  6. class Employee
  7. {
  8. #[ORM\Id]
  9. #[ORM\GeneratedValue]
  10. #[ORM\Column]
  11. private ?int $id = null;
  12. #[ORM\Column(length: 255)]
  13. private ?string $name = null;
  14. #[ORM\Column(length: 255)]
  15. private ?string $job = null;
  16. #[ORM\Column(length: 255)]
  17. private ?string $position = null;
  18. #[ORM\Column(length: 255, nullable: true)]
  19. private ?string $facebook = null;
  20. #[ORM\Column(length: 255, nullable: true)]
  21. private ?string $twitter = null;
  22. #[ORM\Column(length: 255, nullable: true)]
  23. private ?string $linkedin = null;
  24. #[ORM\Column(length: 255, nullable: true)]
  25. private ?string $instagram = null;
  26. #[ORM\Column(length: 255, nullable: true)]
  27. private ?string $image = null;
  28. #[ORM\Column(type: 'integer', options: ['default' => 0])]
  29. private int $sortOrder = 0;
  30. public function getId(): ?int
  31. {
  32. return $this->id;
  33. }
  34. public function getName(): ?string
  35. {
  36. return $this->name;
  37. }
  38. public function setName(string $name): self
  39. {
  40. $this->name = $name;
  41. return $this;
  42. }
  43. public function getJob(): ?string
  44. {
  45. return $this->job;
  46. }
  47. public function setJob(string $job): self
  48. {
  49. $this->job = $job;
  50. return $this;
  51. }
  52. public function getPosition(): ?string
  53. {
  54. return $this->position;
  55. }
  56. public function setPosition(string $position): self
  57. {
  58. $this->position = $position;
  59. return $this;
  60. }
  61. public function getFacebook(): ?string
  62. {
  63. return $this->facebook;
  64. }
  65. public function setFacebook(?string $facebook): self
  66. {
  67. $this->facebook = $facebook;
  68. return $this;
  69. }
  70. public function getTwitter(): ?string
  71. {
  72. return $this->twitter;
  73. }
  74. public function setTwitter(?string $twitter): self
  75. {
  76. $this->twitter = $twitter;
  77. return $this;
  78. }
  79. public function getLinkedin(): ?string
  80. {
  81. return $this->linkedin;
  82. }
  83. public function setLinkedin(?string $linkedin): self
  84. {
  85. $this->linkedin = $linkedin;
  86. return $this;
  87. }
  88. public function getInstagram(): ?string
  89. {
  90. return $this->instagram;
  91. }
  92. public function setInstagram(?string $instagram): self
  93. {
  94. $this->instagram = $instagram;
  95. return $this;
  96. }
  97. public function getImage(): ?string
  98. {
  99. return $this->image;
  100. }
  101. public function setImage(?string $image): self
  102. {
  103. $this->image = $image;
  104. return $this;
  105. }
  106. public function getSortOrder(): int
  107. {
  108. return $this->sortOrder;
  109. }
  110. public function setSortOrder(int $sortOrder): self
  111. {
  112. $this->sortOrder = $sortOrder;
  113. return $this;
  114. }
  115. }