src/Entity/BCFacteur.php line 12

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BCFacteurRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassBCFacteurRepository::class)]
  9. class BCFacteur
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\ManyToOne(inversedBy'BCFacteurs')]
  16.     #[ORM\JoinColumn(nullablefalse)]
  17.     private ?BCModele $BCModele null;
  18.     #[ORM\Column(nullabletrue)]
  19.     private ?float $impactGlobal null;
  20.     #[ORM\Column(nullabletrue)]
  21.     private ?float $impactMP null;
  22.     #[ORM\Column(nullabletrue)]
  23.     private ?float $impactAppro null;
  24.     #[ORM\Column(nullabletrue)]
  25.     private ?float $impactMiseEnForme null;
  26.     #[ORM\Column(nullabletrue)]
  27.     private ?float $impactAssemblage null;
  28.     #[ORM\Column(nullabletrue)]
  29.     private ?float $impactDistribution null;
  30.     #[ORM\Column(length255)]
  31.     private ?string $source null;
  32.     #[ORM\Column]
  33.     private ?int $incertitude null;
  34.     #[ORM\Column(length10nullabletrue)]
  35.     private ?string $version null;
  36.     #[ORM\Column]
  37.     private ?\DateTimeImmutable $createdAt null;
  38.     #[ORM\Column(typeTypes::DATE_IMMUTABLEnullabletrue)]
  39.     private ?\DateTimeImmutable $date null;
  40.     #[ORM\OneToMany(mappedBy'facteur'targetEntityBCData::class, orphanRemovaltrue)]
  41.     private Collection $BCData;
  42.     public function __construct()
  43.     {
  44.         $this->createdAt = new \DateTimeImmutable();
  45.         $this->BCData = new ArrayCollection();
  46.     }
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function getBCModele(): ?BCModele
  52.     {
  53.         return $this->BCModele;
  54.     }
  55.     public function setBCModele(?BCModele $BCModele): self
  56.     {
  57.         $this->BCModele $BCModele;
  58.         return $this;
  59.     }
  60.     public function getImpactGlobal(): ?float
  61.     {
  62.         return $this->impactGlobal;
  63.     }
  64.     public function setImpactGlobal(?float $impactGlobal): self
  65.     {
  66.         $this->impactGlobal $impactGlobal;
  67.         return $this;
  68.     }
  69.     public function getImpactMP(): ?float
  70.     {
  71.         return $this->impactMP;
  72.     }
  73.     public function setImpactMP(?float $impactMP): self
  74.     {
  75.         $this->impactMP $impactMP;
  76.         return $this;
  77.     }
  78.     public function getImpactAppro(): ?float
  79.     {
  80.         return $this->impactAppro;
  81.     }
  82.     public function setImpactAppro(?float $impactAppro): self
  83.     {
  84.         $this->impactAppro $impactAppro;
  85.         return $this;
  86.     }
  87.     public function getImpactMiseEnForme(): ?float
  88.     {
  89.         return $this->impactMiseEnForme;
  90.     }
  91.     public function setImpactMiseEnForme(?float $impactMiseEnForme): self
  92.     {
  93.         $this->impactMiseEnForme $impactMiseEnForme;
  94.         return $this;
  95.     }
  96.     public function getImpactAssemblage(): ?float
  97.     {
  98.         return $this->impactAssemblage;
  99.     }
  100.     public function setImpactAssemblage(?float $impactAssemblage): self
  101.     {
  102.         $this->impactAssemblage $impactAssemblage;
  103.         return $this;
  104.     }
  105.     public function getImpactDistribution(): ?float
  106.     {
  107.         return $this->impactDistribution;
  108.     }
  109.     public function setImpactDistribution(?float $impactDistribution): self
  110.     {
  111.         $this->impactDistribution $impactDistribution;
  112.         return $this;
  113.     }
  114.     public function getSource(): ?string
  115.     {
  116.         return $this->source;
  117.     }
  118.     public function setSource(string $source): self
  119.     {
  120.         $this->source $source;
  121.         return $this;
  122.     }
  123.     public function getIncertitude(): ?int
  124.     {
  125.         return $this->incertitude;
  126.     }
  127.     public function setIncertitude(int $incertitude): self
  128.     {
  129.         $this->incertitude $incertitude;
  130.         return $this;
  131.     }
  132.     public function getVersion(): ?string
  133.     {
  134.         return $this->version;
  135.     }
  136.     public function setVersion(?string $version): self
  137.     {
  138.         $this->version $version;
  139.         return $this;
  140.     }
  141.     public function getCreatedAt(): ?\DateTimeImmutable
  142.     {
  143.         return $this->createdAt;
  144.     }
  145.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  146.     {
  147.         $this->createdAt $createdAt;
  148.         return $this;
  149.     }
  150.     public function getDate(): ?\DateTimeImmutable
  151.     {
  152.         return $this->date;
  153.     }
  154.     public function setDate(\DateTimeImmutable $date): self
  155.     {
  156.         $this->date $date;
  157.         return $this;
  158.     }
  159.     /**
  160.      * @return Collection<int, BCData>
  161.      */
  162.     public function getBCData(): Collection
  163.     {
  164.         return $this->BCData;
  165.     }
  166.     public function addBCData(BCData $bCData): self
  167.     {
  168.         if (!$this->BCData->contains($bCData)) {
  169.             $this->BCData->add($bCData);
  170.             $bCData->setFacteur($this);
  171.         }
  172.         return $this;
  173.     }
  174.     public function removeBCData(BCData $bCData): self
  175.     {
  176.         if ($this->BCData->removeElement($bCData)) {
  177.             // set the owning side to null (unless already changed)
  178.             if ($bCData->getFacteur() === $this) {
  179.                 $bCData->setFacteur(null);
  180.             }
  181.         }
  182.         return $this;
  183.     }
  184. }