src/Entity/TeamMember.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\Entity()
  6. */
  7. class TeamMember
  8. {
  9. /**
  10. * @ORM\Id
  11. * @ORM\GeneratedValue
  12. * @ORM\Column(type="integer")
  13. */
  14. private $id;
  15. /**
  16. * @ORM\Column(type="string", length=255)
  17. */
  18. private $name;
  19. /**
  20. * @ORM\Column(type="string", length=255)
  21. */
  22. private $role;
  23. /**
  24. * @ORM\Column(type="string", length=255, nullable=true)
  25. */
  26. private $image;
  27. /**
  28. * @ORM\Column(type="integer")
  29. */
  30. private $displayOrder = 0;
  31. public function getId(): ?int
  32. {
  33. return $this->id;
  34. }
  35. public function getName(): ?string
  36. {
  37. return $this->name;
  38. }
  39. public function setName(string $name): self
  40. {
  41. $this->name = $name;
  42. return $this;
  43. }
  44. public function getRole(): ?string
  45. {
  46. return $this->role;
  47. }
  48. public function setRole(string $role): self
  49. {
  50. $this->role = $role;
  51. return $this;
  52. }
  53. public function getImage(): ?string
  54. {
  55. return $this->image;
  56. }
  57. public function setImage(?string $image): self
  58. {
  59. $this->image = $image;
  60. return $this;
  61. }
  62. public function getDisplayOrder(): ?int
  63. {
  64. return $this->displayOrder;
  65. }
  66. public function setDisplayOrder(int $displayOrder): self
  67. {
  68. $this->displayOrder = $displayOrder;
  69. return $this;
  70. }
  71. }