<?php
namespace App\Entity;
use App\Repository\FacturesRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=FacturesRepository::class)
*/
class Factures
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $Created;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="factures")
*/
private $User;
/**
* @ORM\ManyToOne(targetEntity=Commandes::class, inversedBy="factures")
*/
private $Commandes;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $LienDoc;
public function getId(): ?int
{
return $this->id;
}
public function getCreated(): ?\DateTimeInterface
{
return $this->Created;
}
public function setCreated(?\DateTimeInterface $Created): self
{
$this->Created = $Created;
return $this;
}
public function getUser(): ?User
{
return $this->User;
}
public function setUser(?User $User): self
{
$this->User = $User;
return $this;
}
public function getCommandes(): ?Commandes
{
return $this->Commandes;
}
public function setCommandes(?Commandes $Commandes): self
{
$this->Commandes = $Commandes;
return $this;
}
public function getLienDoc(): ?string
{
return $this->LienDoc;
}
public function setLienDoc(?string $LienDoc): self
{
$this->LienDoc = $LienDoc;
return $this;
}
}