src/Entity/TipSettings.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TipSettingsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=TipSettingsRepository::class)
  7.  */
  8. class TipSettings
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="boolean", nullable=true, options={"default"=true})
  18.      */
  19.     private $showReviewerRecommendationsTip true;
  20.     /**
  21.      * @ORM\Column(type="boolean", nullable=true, options={"default"=true})
  22.      */
  23.     private $showCalendarEventsPeriodTip true;
  24.     /**
  25.      * @ORM\OneToOne(targetEntity=User::class, inversedBy="tipSettings", cascade={"persist", "remove"})
  26.      * @ORM\JoinColumn(nullable=false)
  27.      */
  28.     private $user;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function isShowReviewerRecommendationsTip(): ?bool
  34.     {
  35.         return $this->showReviewerRecommendationsTip;
  36.     }
  37.     public function setShowReviewerRecommendationsTip(?bool $showReviewerRecommendationsTip): self
  38.     {
  39.         $this->showReviewerRecommendationsTip $showReviewerRecommendationsTip;
  40.         return $this;
  41.     }
  42.     public function isShowCalendarEventsPeriodTip(): ?bool
  43.     {
  44.         return $this->showCalendarEventsPeriodTip;
  45.     }
  46.     public function setShowCalendarEventsPeriodTip(?bool $showCalendarEventsPeriodTip): self
  47.     {
  48.         $this->showCalendarEventsPeriodTip $showCalendarEventsPeriodTip;
  49.         return $this;
  50.     }
  51.     public function getUser(): ?User
  52.     {
  53.         return $this->user;
  54.     }
  55.     public function setUser(User $user): self
  56.     {
  57.         $this->user $user;
  58.         return $this;
  59.     }
  60. }