src/Entity/StockBandeau.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\StockBandeauRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Entity\Bandeau;
  6. use App\Entity\User;
  7. /**
  8.  * @ORM\Entity(repositoryClass=StockBandeauRepository::class)
  9.  */
  10. class StockBandeau
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity="App\Entity\Bandeau", inversedBy="stockBandeaux")
  20.      * @ORM\JoinColumn(nullable=false)
  21.      */
  22.     private $bandeau;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="stockBandeaux")
  25.      * @ORM\JoinColumn(nullable=false)
  26.      */
  27.     private $user;
  28.     /**
  29.      * Get the value of id
  30.      */
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     /**
  36.      * Get the value of bandeau
  37.      */
  38.     public function getBandeau(): ?Bandeau
  39.     {
  40.         return $this->bandeau;
  41.     }
  42.     /**
  43.      * Set the value of bandeau
  44.      */
  45.     public function setBandeau(?Bandeau $bandeau): self
  46.     {
  47.         $this->bandeau $bandeau;
  48.         return $this;
  49.     }
  50.     /**
  51.      * Get the value of user
  52.      */
  53.     public function getUser(): ?User
  54.     {
  55.         return $this->user;
  56.     }
  57.     /**
  58.      * Set the value of user
  59.      */
  60.     public function setUser(?User $user): self
  61.     {
  62.         $this->user $user;
  63.         return $this;
  64.     }
  65. }