<?php
namespace App\Entity;
use App\Repository\ProductTracabiliteRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ProductTracabiliteRepository::class)]
class ProductTracabilite
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $titre;
#[ORM\Column(type: 'string', length: 255)]
private $fichier;
#[ORM\Column(type: 'integer')]
private $statut;
#[ORM\ManyToOne(targetEntity: Product::class, inversedBy: 'tracabilites')]
#[ORM\JoinColumn(nullable: false)]
private $product;
#[ORM\Column(type: 'datetime', nullable: true)]
private $dateAjout;
public function getId(): ?int
{
return $this->id;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getFichier(): ?string
{
return $this->fichier;
}
public function setFichier(string $fichier): self
{
$this->fichier = $fichier;
return $this;
}
public function getStatut(): ?int
{
return $this->statut;
}
public function setStatut(int $statut): self
{
$this->statut = $statut;
return $this;
}
public function getProduct(): ?Product
{
return $this->product;
}
public function setProduct(?Product $product): self
{
$this->product = $product;
return $this;
}
public function getDateAjout(): ?\DateTimeInterface
{
return $this->dateAjout;
}
public function setDateAjout(?\DateTimeInterface $dateAjout): self
{
$this->dateAjout = $dateAjout;
return $this;
}
}