<?phpnamespace App\Entity;use App\Repository\HistoriqueTransactionFreelanceRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=HistoriqueTransactionFreelanceRepository::class) * @ORM\Table(name="historique_transaction_freelance") */class HistoriqueTransactionFreelance{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=UserPlatform::class) * @ORM\JoinColumn(nullable=false, onDelete="CASCADE") */ private $freelance; /** * @ORM\ManyToOne(targetEntity=Product::class) * @ORM\JoinColumn(nullable=false, onDelete="CASCADE") */ private $produit; /** * true = entrée / false = sortie * * @ORM\Column(type="boolean") */ private $type; /** * @ORM\Column(type="integer") */ private $quantite; /** * @ORM\Column(type="datetime") */ private $dateTransaction; public function getId(): ?int { return $this->id; } public function getFreelance(): ?UserPlatform { return $this->freelance; } public function setFreelance(?UserPlatform $freelance): self { $this->freelance = $freelance; return $this; } public function getProduit(): ?Product { return $this->produit; } public function setProduit(?Product $produit): self { $this->produit = $produit; return $this; } public function getType(): ?bool { return $this->type; } public function setType(bool $type): self { $this->type = $type; return $this; } public function getQuantite(): ?int { return $this->quantite; } public function setQuantite(int $quantite): self { $this->quantite = $quantite; return $this; } public function getDateTransaction(): ?\DateTimeInterface { return $this->dateTransaction; } public function setDateTransaction(\DateTimeInterface $dateTransaction): self { $this->dateTransaction = $dateTransaction; return $this; }}