<?php
namespace App\Entity;
use App\Repository\TipSettingsRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=TipSettingsRepository::class)
*/
class TipSettings
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $showReviewerRecommendationsTip = true;
/**
* @ORM\OneToOne(targetEntity=User::class, inversedBy="tipSettings", cascade={"persist", "remove"})
* @ORM\JoinColumn(nullable=false)
*/
private $user;
public function getId(): ?int
{
return $this->id;
}
public function isShowReviewerRecommendationsTip(): ?bool
{
return $this->showReviewerRecommendationsTip;
}
public function setShowReviewerRecommendationsTip(?bool $showReviewerRecommendationsTip): self
{
$this->showReviewerRecommendationsTip = $showReviewerRecommendationsTip;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(User $user): self
{
$this->user = $user;
return $this;
}
}