src/Entity/SuiviContenaire.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass="App\Repository\SuiviContenaireRepository")
  8.  */
  9. class SuiviContenaire
  10. {
  11.     /**
  12.      * @ORM\Id()
  13.      * @ORM\GeneratedValue()
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity="App\Entity\ProgrammeContenaire", inversedBy="suiviContenaires")
  19.      * @ORM\JoinColumn(nullable=false)
  20.      */
  21.     private $idCtPr;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private $lieu;
  26.     /**
  27.      * @ORM\Column(type="string", length=1)
  28.      */
  29.     private $idPosition;
  30.     /**
  31.      * @ORM\Column(type="date")
  32.      */
  33.     private $dateOperation;
  34.     /**
  35.      * @ORM\Column(type="boolean")
  36.      */
  37.     private $PositionActuelleFlag;
  38.     /**
  39.      * @ORM\OneToMany(targetEntity=SousSuivi::class, mappedBy="suivi", orphanRemoval=true, cascade={"persist"})
  40.      */
  41.     private $sousSuivis;
  42.     public function __construct()
  43.     {
  44.         $this->dateOperation = new \DateTime();
  45.         $this->PositionActuelleFlag true;
  46.         $this->sousSuivis = new ArrayCollection();
  47.     }
  48.     public function getId(): ?int
  49.     {
  50.         return $this->id;
  51.     }
  52.     /**
  53.      * @return Collection|SousSuivi[]
  54.      */
  55.     public function getSousSuivis(): Collection
  56.     {
  57.         return $this->sousSuivis;
  58.     }
  59.     public function addSousSuivi(SousSuivi $sousSuivi): self
  60.     {
  61.         if (!$this->sousSuivis->contains($sousSuivi)) {
  62.             $this->sousSuivis[] = $sousSuivi;
  63.             $sousSuivi->setSuivi($this);
  64.         }
  65.         return $this;
  66.     }
  67.     public function getIdCtPr(): ?ProgrammeContenaire
  68.     {
  69.         return $this->idCtPr;
  70.     }
  71.     public function setIdCtPr(?ProgrammeContenaire $idCtPr): self
  72.     {
  73.         $this->idCtPr $idCtPr;
  74.         return $this;
  75.     }
  76.     public function getLieu(): ?string
  77.     {
  78.         return $this->lieu;
  79.     }
  80.     public function setLieu(string $lieu): self
  81.     {
  82.         $this->lieu $lieu;
  83.         return $this;
  84.     }
  85.     public function getIdPositin(): ?string
  86.     {
  87.         return $this->idPosition;
  88.     }
  89.     public function setIdPosition(string $idPosition): self
  90.     {
  91.         $this->idPosition $idPosition;
  92.         return $this;
  93.     }
  94.     public function getDateOperation(): ?\DateTimeInterface
  95.     {
  96.         return $this->dateOperation;
  97.     }
  98.     public function setDateOperation(\DateTimeInterface $dateOperation): self
  99.     {
  100.         $this->dateOperation $dateOperation;
  101.         return $this;
  102.     }
  103.     public function getPositionActuelleFlag(): ?bool
  104.     {
  105.         return $this->PositionActuelleFlag;
  106.     }
  107.     public function setPositionActuelleFlag(bool $PositionActuelleFlag): self
  108.     {
  109.         $this->PositionActuelleFlag $PositionActuelleFlag;
  110.         return $this;
  111.     }
  112. }