<?php
namespace App\Entity;
use App\Repository\StockDePiecesTraveauxRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: StockDePiecesTraveauxRepository::class)]
class StockDePiecesTraveaux
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $quantite = null;
#[ORM\ManyToOne(inversedBy: 'stockDePiecesTraveauxes')]
private ?StockDePieces $stockPieces = null;
#[ORM\ManyToOne(inversedBy: 'stockDePiecesTraveauxes')]
private ?Traveaux $travaux = null;
public function getId(): ?int
{
return $this->id;
}
public function getQuantite(): ?string
{
return $this->quantite;
}
public function setQuantite(?string $quantite): static
{
$this->quantite = $quantite;
return $this;
}
public function getStockPieces(): ?StockDePieces
{
return $this->stockPieces;
}
public function setStockPieces(?StockDePieces $stockPieces): static
{
$this->stockPieces = $stockPieces;
return $this;
}
public function getTravaux(): ?Traveaux
{
return $this->travaux;
}
public function setTravaux(?Traveaux $travaux): static
{
$this->travaux = $travaux;
return $this;
}
}