src/Entity/Communaute.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Traits\Timestamp;
  4. use App\Repository\CommunauteRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassCommunauteRepository::class)]
  7. #[ORM\HasLifecycleCallbacks]
  8. class Communaute
  9. {
  10.     use Timestamp;
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $name null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $icon null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $lien null;
  21.     #[ORM\ManyToOne(inversedBy'communautes')]
  22.     private ?Apropos $apropos null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getName(): ?string
  28.     {
  29.         return $this->name;
  30.     }
  31.     public function setName(string $name): self
  32.     {
  33.         $this->name $name;
  34.         return $this;
  35.     }
  36.     public function getIcon(): ?string
  37.     {
  38.         return $this->icon;
  39.     }
  40.     public function setIcon(?string $icon): self
  41.     {
  42.         $this->icon $icon;
  43.         return $this;
  44.     }
  45.     public function getLien(): ?string
  46.     {
  47.         return $this->lien;
  48.     }
  49.     public function setLien(?string $lien): self
  50.     {
  51.         $this->lien $lien;
  52.         return $this;
  53.     }
  54.     public function getApropos(): ?Apropos
  55.     {
  56.         return $this->apropos;
  57.     }
  58.     public function setApropos(?Apropos $apropos): self
  59.     {
  60.         $this->apropos $apropos;
  61.         return $this;
  62.     }
  63. }