<?php
namespace App\Entity;
use App\Repository\LribRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: LribRepository::class)]
class Lrib
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 100, nullable:true)]
private ?string $designation = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable:true)]
private ?\DateTimeInterface $date_debut = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable:true)]
private ?\DateTimeInterface $date_fin = null;
#[ORM\Column(type: Types::DATE_MUTABLE, nullable:true)]
private ?\DateTimeInterface $created = null;
#[ORM\ManyToOne(inversedBy: 'lribs')]
private ?LContract $contact_id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $code = null;
#[ORM\Column(nullable: true)]
private ?bool $active = true;
#[ORM\Column(length: 255, nullable: true)]
private ?string $swift = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $banque = null;
public function getId(): ?int
{
return $this->id;
}
public function getDesignation(): ?string
{
return $this->designation;
}
public function setDesignation(string $Designation): self
{
$this->designation = $Designation;
return $this;
}
public function getDateDebut(): ?\DateTimeInterface
{
return $this->date_debut;
}
public function setDateDebut(\DateTimeInterface $date_debut): self
{
$this->date_debut = $date_debut;
return $this;
}
public function getDateFin(): ?\DateTimeInterface
{
return $this->date_fin;
}
public function setDateFin(\DateTimeInterface $date_fin): self
{
$this->date_fin = $date_fin;
return $this;
}
public function getCreated(): ?\DateTimeInterface
{
return $this->created;
}
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getContactId(): ?LContract
{
return $this->contact_id;
}
public function setContactId(?LContract $contact_id): self
{
$this->contact_id = $contact_id;
return $this;
}
public function getCode(): ?string
{
return $this->code;
}
public function setCode(?string $code): static
{
$this->code = $code;
return $this;
}
public function isActive(): ?bool
{
return $this->active;
}
public function setActive(?bool $active): self
{
$this->active = $active;
return $this;
}
public function getSwift(): ?string
{
return $this->swift;
}
public function setSwift(?string $swift): static
{
$this->swift = $swift;
return $this;
}
public function getBanque(): ?string
{
return $this->banque;
}
public function setBanque(?string $banque): static
{
$this->banque = $banque;
return $this;
}
}