src/Entity/Olympiad/Online/Embeded/AdditionalInfo.php line 8

  1. <?php
  2. namespace App\Entity\Olympiad\Online\Embeded;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Embeddable]
  5. class AdditionalInfo
  6. {
  7.     /**
  8.      * @var bool|null
  9.      */
  10.     #[ORM\Column(type'boolean'nullabletrue)]
  11.     private ?bool $ovzStatus null;
  12.     #[ORM\Column(type'string'nullabletrue)]
  13.     private ?string $clothesSizes null;
  14.     #[ORM\Column(type'string'nullabletrue)]
  15.     private ?string $food null;
  16.     #[ORM\Column(type'text'nullabletrue)]
  17.     private ?string $foodOther '';
  18.     #[ORM\Column(type'text'nullabletrue)]
  19.     private ?string $allergy '';
  20.     #[ORM\Column(type'json'nullabletrue)]
  21.     private ?array $hobby = [];
  22.     /**
  23.      * @return bool|null
  24.      */
  25.     public function getOvzStatus(): ?bool
  26.     {
  27.         return $this->ovzStatus;
  28.     }
  29.     /**
  30.      * @param bool|null $ovzStatus
  31.      */
  32.     public function setOvzStatus(?bool $ovzStatus): void
  33.     {
  34.         $this->ovzStatus $ovzStatus;
  35.     }
  36.     /**
  37.      *
  38.      */
  39.     public function getClothesSizes(): ?string
  40.     {
  41.         return $this->clothesSizes;
  42.     }
  43.     /**
  44.      *
  45.      */
  46.     public function setClothesSizes(?string $clothesSizes): void
  47.     {
  48.         $this->clothesSizes $clothesSizes;
  49.     }
  50.     /**
  51.      * @return string|null
  52.      */
  53.     public function getFoodOther(): ?string
  54.     {
  55.         return $this->foodOther;
  56.     }
  57.     /**
  58.      * @param string|null $foodOther
  59.      */
  60.     public function setFoodOther(?string $foodOther): void
  61.     {
  62.         $this->foodOther $foodOther;
  63.     }
  64.     /**
  65.      * @return string|null
  66.      */
  67.     public function getAllergy(): ?string
  68.     {
  69.         return $this->allergy;
  70.     }
  71.     /**
  72.      * @param string|null $allergy
  73.      */
  74.     public function setAllergy(?string $allergy): void
  75.     {
  76.         $this->allergy $allergy;
  77.     }
  78.     /**
  79.      * @return string|null
  80.      */
  81.     public function getFood(): ?string
  82.     {
  83.         return $this->food;
  84.     }
  85.     /**
  86.      * @param string|null $food
  87.      */
  88.     public function setFood(?string $food): void
  89.     {
  90.         $this->food $food;
  91.     }
  92.     /**
  93.      * @return array|null
  94.      */
  95.     public function getHobby(): ?array
  96.     {
  97.         return $this->hobby;
  98.     }
  99.     /**
  100.      * @param array|null $hobby
  101.      */
  102.     public function setHobby(?array $hobby): void
  103.     {
  104.         $this->hobby $hobby;
  105.     }
  106. }