src/Entity/MaterielMouvement.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MaterielMouvementRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=MaterielMouvementRepository::class)
  7.  */
  8. class MaterielMouvement
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Model::class, inversedBy="materielMouvements")
  18.      */
  19.     private $modele;
  20.     /**
  21.      * @ORM\Column(type="integer")
  22.      */
  23.     private $qte;
  24.     /**
  25.      * @ORM\Column(type="json", nullable=true)
  26.      */
  27.     private $identifiants = [];
  28.     public function getIdentifiants(): array
  29.     {
  30.         return $this->identifiants;
  31.     }
  32.     public function setIdentifiants(array $identifiants): self
  33.     {
  34.         $this->identifiants $identifiants;
  35.         return $this;
  36.     }
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity=Mouvement::class, inversedBy="materielMouvements")
  39.      */
  40.     private $mouvement;
  41.     /**
  42.      * @ORM\ManyToOne(targetEntity=Stock::class, inversedBy="materielMouvements")
  43.      */
  44.     private $stock;
  45.     public function getId(): ?int
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getModele(): ?Model
  50.     {
  51.         return $this->modele;
  52.     }
  53.     public function setModele(?Model $modele): self
  54.     {
  55.         $this->modele $modele;
  56.         return $this;
  57.     }
  58.     public function getQte(): ?int
  59.     {
  60.         return $this->qte;
  61.     }
  62.     public function setQte(int $qte): self
  63.     {
  64.         $this->qte $qte;
  65.         return $this;
  66.     }
  67.     public function getMouvement(): ?Mouvement
  68.     {
  69.         return $this->mouvement;
  70.     }
  71.     public function setMouvement(?Mouvement $mouvement): self
  72.     {
  73.         $this->mouvement $mouvement;
  74.         return $this;
  75.     }
  76.     public function getStock(): ?Stock
  77.     {
  78.         return $this->stock;
  79.     }
  80.     public function setStock(?Stock $stock): self
  81.     {
  82.         $this->stock $stock;
  83.         return $this;
  84.     }
  85. }