<?php
namespace App\Entity;
use App\Repository\StockBandeauRepository;
use Doctrine\ORM\Mapping as ORM;
use App\Entity\Bandeau;
use App\Entity\User;
/**
* @ORM\Entity(repositoryClass=StockBandeauRepository::class)
*/
class StockBandeau
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Bandeau", inversedBy="stockBandeaux")
* @ORM\JoinColumn(nullable=false)
*/
private $bandeau;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\User", inversedBy="stockBandeaux")
* @ORM\JoinColumn(nullable=false)
*/
private $user;
/**
* Get the value of id
*/
public function getId(): ?int
{
return $this->id;
}
/**
* Get the value of bandeau
*/
public function getBandeau(): ?Bandeau
{
return $this->bandeau;
}
/**
* Set the value of bandeau
*/
public function setBandeau(?Bandeau $bandeau): self
{
$this->bandeau = $bandeau;
return $this;
}
/**
* Get the value of user
*/
public function getUser(): ?User
{
return $this->user;
}
/**
* Set the value of user
*/
public function setUser(?User $user): self
{
$this->user = $user;
return $this;
}
}