src/Entity/ProfilingPerson.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Entity\Enum\ProfilingType;
  4. use App\Repository\ProfilingPersonRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassProfilingPersonRepository::class)]
  7. class ProfilingPerson
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     private $id;
  13.     #[ORM\Column(type'text'nullabletrue)]
  14.     private $comment;
  15.     #[ORM\ManyToOne(targetEntityPerson::class, inversedBy'profilingPersons')]
  16.     #[ORM\JoinColumn(nullablefalse)]
  17.     private $person;
  18.     #[ORM\ManyToOne(targetEntitySeason::class, inversedBy'profilingPersons')]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private $season;
  21.     #[ORM\ManyToOne(targetEntityProfiling::class, inversedBy'profilingPersons')]
  22.     private $profiling;
  23.     #[ORM\Column(type'string'length20enumTypeProfilingType::class)]
  24.     private $type;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getComment(): ?string
  30.     {
  31.         return $this->comment;
  32.     }
  33.     public function setComment(?string $comment): self
  34.     {
  35.         $this->comment $comment;
  36.         return $this;
  37.     }
  38.     public function getPerson(): ?Person
  39.     {
  40.         return $this->person;
  41.     }
  42.     public function setPerson(?Person $person): self
  43.     {
  44.         $this->person $person;
  45.         return $this;
  46.     }
  47.     public function getSeason(): ?Season
  48.     {
  49.         return $this->season;
  50.     }
  51.     public function setSeason(?Season $season): self
  52.     {
  53.         $this->season $season;
  54.         return $this;
  55.     }
  56.     public function getProfiling(): ?Profiling
  57.     {
  58.         return $this->profiling;
  59.     }
  60.     public function setProfiling(?Profiling $profiling): self
  61.     {
  62.         $this->profiling $profiling;
  63.         return $this;
  64.     }
  65.     public function getType(): ?ProfilingType
  66.     {
  67.         return $this->type;
  68.     }
  69.     public function setType(ProfilingType $type): self
  70.     {
  71.         $this->type $type;
  72.         return $this;
  73.     }
  74.     public function __clone()
  75.     {
  76.         $this->id null;
  77.         $this->comment null;
  78.         $this->season null;
  79.         $this->profiling null;
  80.     }
  81. }