<?php
// src/Entity/Beneficiaire.php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
use Symfony\Component\Security\Core\User\UserInterface;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
/**
* @ORM\Entity()
* @ORM\Table(name="69pixl_beneficiaire")
*/
class Beneficiaire
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
public function getId(): ?int
{
return $this->id;
}
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $conditional;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nomUsage;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nom;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $prenom;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $adresse;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $dateDeNaissance;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $lieuDeNaissance;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $lienParente;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $priorite;
/**
* @ORM\Column(type="float", nullable=true)
*/
private $part;
/**
* @var beneficiaires[]
* @ORM\ManyToOne(targetEntity="App\Entity\Ba", inversedBy="beneficiaires")
*/
protected $ba;
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(?string $nom): self
{
$this->nom = $nom;
return $this;
}
public function getPrenom(): ?string
{
return $this->prenom;
}
public function setPrenom(?string $prenom): self
{
$this->prenom = $prenom;
return $this;
}
public function getAdresse(): ?string
{
return $this->adresse;
}
public function setAdresse(?string $adresse): self
{
$this->adresse = $adresse;
return $this;
}
public function getDateDeNaissance()
{
return $this->dateDeNaissance;
}
public function setDateDeNaissance($dateDeNaissance)
{
$this->dateDeNaissance = $dateDeNaissance;
return $this;
}
public function getLieuDeNaissance(): ?string
{
return $this->lieuDeNaissance;
}
public function setLieuDeNaissance(?string $lieuDeNaissance): self
{
$this->lieuDeNaissance = $lieuDeNaissance;
return $this;
}
public function getPriorite(): ?string
{
return $this->priorite;
}
public function setPriorite(?string $priorite): self
{
$this->priorite = $priorite;
return $this;
}
public function getPart(): ?float
{
return $this->part;
}
public function setPart(?float $part): self
{
$this->part = $part;
return $this;
}
public function getBa(): ?Ba
{
return $this->ba;
}
public function setBa(?Ba $ba): self
{
$this->ba = $ba;
return $this;
}
public function getConditional(): ?string
{
return $this->conditional;
}
public function setConditional(?string $conditional): self
{
$this->conditional = $conditional;
return $this;
}
public function getNomUsage(): ?string
{
return $this->nomUsage;
}
public function setNomUsage(?string $nomUsage): self
{
$this->nomUsage = $nomUsage;
return $this;
}
public function getLienParente(): ?string
{
return $this->lienParente;
}
public function setLienParente(?string $lienParente): self
{
$this->lienParente = $lienParente;
return $this;
}
}