src/Entity/ReseauSocial.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ReseauSocialRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ReseauSocialRepository::class)
  8.  */
  9. class ReseauSocial
  10. {
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=25, nullable=true)
  19.      */
  20.     private $nom;
  21.     /**
  22.      * @ORM\Column(type="string", length=255, nullable=true)
  23.      */
  24.     private $url;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity="App\Entity\Structure", inversedBy="reseauxSociaux")
  27.      * @ORM\JoinColumn(nullable=false)
  28.      */
  29.     private $structure;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getNom(): ?string
  35.     {
  36.         return $this->nom;
  37.     }
  38.     public function setNom(?string $nom): self
  39.     {
  40.         $this->nom $nom;
  41.         return $this;
  42.     }
  43.     public function getUrl(): ?string
  44.     {
  45.         return $this->url;
  46.     }
  47.     public function setUrl(?string $url): self
  48.     {
  49.         $this->url $url;
  50.         return $this;
  51.     }
  52.     public function getStructure(): ?Structure
  53.     {
  54.         return $this->structure;
  55.     }
  56.     public function setStructure(?Structure $structure): self
  57.     {
  58.         $this->structure $structure;
  59.         return $this;
  60.     }
  61. }