src/Entity/Link.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LinkRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=LinkRepository::class)
  7.  */
  8. class Link
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $icon;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $link;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=user::class, inversedBy="links")
  26.      */
  27.     private $user;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity=Supplier::class, inversedBy="links")
  30.      */
  31.     private $supplier;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity=Source::class)
  34.      * @ORM\JoinColumn(nullable=false)
  35.      */
  36.     private $source;
  37.     public function getSource(): ?Source
  38.     {
  39.         return $this->source;
  40.     }
  41.     public function setSource(?Source $source): self
  42.     {
  43.         $this->source $source;
  44.         return $this;
  45.     }
  46.     public function getId(): ?int
  47.     {
  48.         return $this->id;
  49.     }
  50.     public function getIcon(): ?string
  51.     {
  52.         return $this->icon;
  53.     }
  54.     public function setIcon(string $icon): self
  55.     {
  56.         $this->icon $icon;
  57.         return $this;
  58.     }
  59.     public function getLink(): ?string
  60.     {
  61.         return $this->link;
  62.     }
  63.     public function setLink(string $link): self
  64.     {
  65.         $this->link $link;
  66.         return $this;
  67.     }
  68.     public function getUser(): ?user
  69.     {
  70.         return $this->user;
  71.     }
  72.     public function setUser(?user $user): self
  73.     {
  74.         $this->user $user;
  75.         return $this;
  76.     }
  77.     public function getSupplier(): ?Supplier
  78.     {
  79.         return $this->supplier;
  80.     }
  81.     public function setSupplier(?Supplier $supplier): self
  82.     {
  83.         $this->supplier $supplier;
  84.         return $this;
  85.     }
  86. }