<?php
namespace App\Entity;
use App\Repository\FactureAvoirRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=FactureAvoirRepository::class)
*/
class FactureAvoir
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $numeroAvoir;
/**
* @ORM\OneToOne(targetEntity=EnteteFacture::class, cascade={"persist", "remove"})
*/
private $facture;
/**
* @ORM\Column(type="datetime")
*/
private $created_at;
public function getId(): ?int
{
return $this->id;
}
public function getNumeroAvoir(): ?string
{
return $this->numeroAvoir;
}
public function setNumeroAvoir(string $numeroAvoir): self
{
$this->numeroAvoir = $numeroAvoir;
return $this;
}
public function getFacture(): ?EnteteFacture
{
return $this->facture;
}
public function setFacture(?EnteteFacture $facture): self
{
$this->facture = $facture;
return $this;
}
public function getCreatedAt(): ?\DateTime
{
return $this->created_at;
}
public function setCreatedAt(\DateTime $created_at): self
{
$this->created_at = $created_at;
return $this;
}
}