src/Entity/Analyse.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\AnalyseRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: AnalyseRepository::class)]
  6. class Analyse
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id = null;
  12.     #[ORM\OneToOne(inversedBy: 'analyse', cascade: ['persist', 'remove'])]
  13.     private ?PSG $psg = null;
  14.     #[ORM\ManyToOne(inversedBy: 'analyse')]
  15.     private ?Strength $strength = null;
  16.     #[ORM\ManyToOne(inversedBy: 'analyse')]
  17.     private ?Weakness $weakness = null;
  18.     #[ORM\ManyToOne(inversedBy: 'analyse')]
  19.     private ?Opportunity $opportunity = null;
  20.     #[ORM\ManyToOne(inversedBy: 'analyse')]
  21.     private ?Threat $threat = null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getPsg(): ?PSG
  27.     {
  28.         return $this->psg;
  29.     }
  30.     public function setPsg(?PSG $psg): static
  31.     {
  32.         $this->psg = $psg;
  33.         return $this;
  34.     }
  35.     public function getStrength(): ?Strength
  36.     {
  37.         return $this->strength;
  38.     }
  39.     public function setStrength(?Strength $strength): static
  40.     {
  41.         $this->strength = $strength;
  42.         return $this;
  43.     }
  44.     public function getWeakness(): ?Weakness
  45.     {
  46.         return $this->weakness;
  47.     }
  48.     public function setWeakness(?Weakness $weakness): static
  49.     {
  50.         $this->weakness = $weakness;
  51.         return $this;
  52.     }
  53.     public function getOpportunity(): ?Opportunity
  54.     {
  55.         return $this->opportunity;
  56.     }
  57.     public function setOpportunity(?Opportunity $opportunity): static
  58.     {
  59.         $this->opportunity = $opportunity;
  60.         return $this;
  61.     }
  62.     public function getThreat(): ?Threat
  63.     {
  64.         return $this->threat;
  65.     }
  66.     public function setThreat(?Threat $threat): static
  67.     {
  68.         $this->threat = $threat;
  69.         return $this;
  70.     }
  71. }