Network.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Network;
  4. use App\Repository\Network\NetworkRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * Enum des différents réseaux auxquels peut appartenir une Organization
  8. */
  9. #[ORM\Entity(repositoryClass: NetworkRepository::class)]
  10. class Network
  11. {
  12. #[ORM\Id]
  13. #[ORM\Column]
  14. #[ORM\GeneratedValue]
  15. private ?int $id = null;
  16. #[ORM\Column(length: 255)]
  17. private string $name;
  18. #[ORM\Column(length: 255, nullable: true)]
  19. private ?string $logo = null;
  20. #[ORM\Column(length: 255, nullable: true)]
  21. private ?string $url = null;
  22. public function setId($id): self
  23. {
  24. $this->id = $id;
  25. return $this;
  26. }
  27. public function getId(): ?int
  28. {
  29. return $this->id;
  30. }
  31. public function getName(): string
  32. {
  33. return $this->name;
  34. }
  35. public function setName(string $name): self
  36. {
  37. $this->name = $name;
  38. return $this;
  39. }
  40. public function getLogo(): ?string
  41. {
  42. return $this->logo;
  43. }
  44. public function setLogo(?string $logo): self
  45. {
  46. $this->logo = $logo;
  47. return $this;
  48. }
  49. public function getUrl(): ?string
  50. {
  51. return $this->url;
  52. }
  53. public function setUrl(?string $url): self
  54. {
  55. $this->url = $url;
  56. return $this;
  57. }
  58. }