<?php
namespace App\Entity;
use App\Repository\MaterielMouvementRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=MaterielMouvementRepository::class)
*/
class MaterielMouvement
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Model::class, inversedBy="materielMouvements")
*/
private $modele;
/**
* @ORM\Column(type="integer")
*/
private $qte;
/**
* @ORM\Column(type="json", nullable=true)
*/
private $identifiants = [];
public function getIdentifiants(): array
{
return $this->identifiants;
}
public function setIdentifiants(array $identifiants): self
{
$this->identifiants = $identifiants;
return $this;
}
/**
* @ORM\ManyToOne(targetEntity=Mouvement::class, inversedBy="materielMouvements")
*/
private $mouvement;
/**
* @ORM\ManyToOne(targetEntity=Stock::class, inversedBy="materielMouvements")
*/
private $stock;
public function getId(): ?int
{
return $this->id;
}
public function getModele(): ?Model
{
return $this->modele;
}
public function setModele(?Model $modele): self
{
$this->modele = $modele;
return $this;
}
public function getQte(): ?int
{
return $this->qte;
}
public function setQte(int $qte): self
{
$this->qte = $qte;
return $this;
}
public function getMouvement(): ?Mouvement
{
return $this->mouvement;
}
public function setMouvement(?Mouvement $mouvement): self
{
$this->mouvement = $mouvement;
return $this;
}
public function getStock(): ?Stock
{
return $this->stock;
}
public function setStock(?Stock $stock): self
{
$this->stock = $stock;
return $this;
}
}