src/Entity/OpenDayPerson.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\OpenDayPersonRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassOpenDayPersonRepository::class)]
  6. #[ORM\HasLifecycleCallbacks]
  7. class OpenDayPerson
  8. {
  9.     use \App\Traits\EntityDateTimeAbleTrait;
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\ManyToOne(targetEntityOpenDay::class, inversedBy'openDayPeople')]
  15.     private ?\App\Entity\OpenDay $openDay null;
  16.     #[ORM\ManyToOne(targetEntityProfile::class, inversedBy'openDayPeople')]
  17.     private ?\App\Entity\Profile $profile null;
  18.     #[ORM\ManyToOne(inversedBy'openDayPeople')]
  19.     private ?Campus $campus null;
  20.     #[ORM\Column(nullabletrue)]
  21.     private ?array $information null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getOpenDay(): ?OpenDay
  27.     {
  28.         return $this->openDay;
  29.     }
  30.     public function setOpenDay(?OpenDay $openDay): self
  31.     {
  32.         $this->openDay $openDay;
  33.         return $this;
  34.     }
  35.     public function getProfile(): ?Profile
  36.     {
  37.         return $this->profile;
  38.     }
  39.     public function setProfile(?Profile $profile): self
  40.     {
  41.         $this->profile $profile;
  42.         return $this;
  43.     }
  44.     public function getCampus(): ?Campus
  45.     {
  46.         return $this->campus;
  47.     }
  48.     public function setCampus(?Campus $campus): static
  49.     {
  50.         $this->campus $campus;
  51.         return $this;
  52.     }
  53.     public function getInformation(): ?array
  54.     {
  55.         return $this->information;
  56.     }
  57.     public function setInformation(?array $information): static
  58.     {
  59.         $this->information $information;
  60.         return $this;
  61.     }
  62. }