src/Entity/Declarant.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\DeclarantRepository")
  6.  */
  7. class Declarant
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\ManyToOne(targetEntity="App\Entity\ProgrammeContenaire", inversedBy="declarants")
  17.      * @ORM\JoinColumn(nullable=false)
  18.      */
  19.     private $idPrCt;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $nomDeclarant;
  24.     /**
  25.      * @ORM\Column(type="date")
  26.      */
  27.     private $dateOperation;
  28.     /**
  29.      * @ORM\Column(type="boolean")
  30.      */
  31.     private $FlagActuelle;
  32.     public function __construct()
  33.     {
  34.         $this->dateOperation = new \DateTime();
  35.         $this->FlagActuelle true;
  36.     }
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getIdPrCt(): ?ProgrammeContenaire
  42.     {
  43.         return $this->idPrCt;
  44.     }
  45.     public function setIdPrCt(?ProgrammeContenaire $idPrCt): self
  46.     {
  47.         $this->idPrCt $idPrCt;
  48.         return $this;
  49.     }
  50.     public function getNomDeclarant(): ?string
  51.     {
  52.         return $this->nomDeclarant;
  53.     }
  54.     public function setNomDeclarant(string $nomDeclarant): self
  55.     {
  56.         $this->nomDeclarant $nomDeclarant;
  57.         return $this;
  58.     }
  59.     public function getDateOperation(): ?\DateTimeInterface
  60.     {
  61.         return $this->dateOperation;
  62.     }
  63.     public function setDateOperation(\DateTimeInterface $dateOperation): self
  64.     {
  65.         $this->dateOperation $dateOperation;
  66.         return $this;
  67.     }
  68.     public function getFlagActuelle(): ?bool
  69.     {
  70.         return $this->FlagActuelle;
  71.     }
  72.     public function setFlagActuelle(bool $FlagActuelle): self
  73.     {
  74.         $this->FlagActuelle $FlagActuelle;
  75.         return $this;
  76.     }
  77. }