<?php
namespace App\Entity;
use App\Repository\TypeCompteRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: TypeCompteRepository::class)]
class TypeCompte
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $type_compte = null;
#[ORM\ManyToOne]
private ?Etat $etat = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $date_creation = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $date_update = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $associe = null;
public function getId(): ?int
{
return $this->id;
}
public function getTypeCompte(): ?string
{
return $this->type_compte;
}
public function setTypeCompte(?string $type_compte): static
{
$this->type_compte = $type_compte;
return $this;
}
public function getEtat(): ?Etat
{
return $this->etat;
}
public function setEtat(?Etat $etat): static
{
$this->etat = $etat;
return $this;
}
public function getDateCreation(): ?\DateTimeInterface
{
return $this->date_creation;
}
public function setDateCreation(?\DateTimeInterface $date_creation): static
{
$this->date_creation = $date_creation;
return $this;
}
public function getDateUpdate(): ?\DateTimeInterface
{
return $this->date_update;
}
public function setDateUpdate(?\DateTimeInterface $date_update): static
{
$this->date_update = $date_update;
return $this;
}
public function getAssocie(): ?string
{
return $this->associe;
}
public function setAssocie(?string $associe): static
{
$this->associe = $associe;
return $this;
}
}