src/Entity/Partner.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PartnerRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: PartnerRepository::class)]
  6. class Partner
  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, nullable: true)]
  15. private ?string $logo = null;
  16. #[ORM\Column(type: 'text', nullable: true)]
  17. private ?string $description = null;
  18. #[ORM\Column(length: 255, nullable: true)]
  19. private ?string $link = null;
  20. #[ORM\Column(type: 'integer', options: ['default' => 0])]
  21. private int $sortOrder = 0;
  22. public function getId(): ?int
  23. {
  24. return $this->id;
  25. }
  26. public function getName(): ?string
  27. {
  28. return $this->name;
  29. }
  30. public function setName(string $name): self
  31. {
  32. $this->name = $name;
  33. return $this;
  34. }
  35. public function getLogo(): ?string
  36. {
  37. return $this->logo;
  38. }
  39. public function setLogo(?string $logo): self
  40. {
  41. $this->logo = $logo;
  42. return $this;
  43. }
  44. public function getDescription(): ?string
  45. {
  46. return $this->description;
  47. }
  48. public function setDescription(?string $description): self
  49. {
  50. $this->description = $description;
  51. return $this;
  52. }
  53. public function getLink(): ?string
  54. {
  55. return $this->link;
  56. }
  57. public function setLink(?string $link): self
  58. {
  59. $this->link = $link;
  60. return $this;
  61. }
  62. public function getSortOrder(): int
  63. {
  64. return $this->sortOrder;
  65. }
  66. public function setSortOrder(int $sortOrder): self
  67. {
  68. $this->sortOrder = $sortOrder;
  69. return $this;
  70. }
  71. }