src/Entity/UserAppSettings.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\UserAppSettingsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=UserAppSettingsRepository::class)
  7.  */
  8. class UserAppSettings
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=AppSettings::class, inversedBy="userAppSettings")
  18.      * @ORM\JoinColumn(nullable=false)
  19.      */
  20.     private $app;
  21.     /**
  22.      * @ORM\Column(type="boolean", nullable=true, options={"comment": "User defined On/Of By CheckIn QR Code Required...", "default": true } )
  23.      */
  24.     private $checkin_qr_code_required;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity=Worker::class, inversedBy="userAppSettings")
  27.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  28.      */
  29.     private $worker;
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getApp(): ?AppSettings
  35.     {
  36.         return $this->app;
  37.     }
  38.     public function setApp(?AppSettings $app): self
  39.     {
  40.         $this->app $app;
  41.         return $this;
  42.     }
  43.     public function isCheckinQrCodeRequired(): ?bool
  44.     {
  45.         return $this->checkin_qr_code_required;
  46.     }
  47.     public function setCheckinQrCodeRequired(?bool $checkin_qr_code_required): self
  48.     {
  49.         $this->checkin_qr_code_required $checkin_qr_code_required;
  50.         return $this;
  51.     }
  52.     public function getWorker(): ?Worker
  53.     {
  54.         return $this->worker;
  55.     }
  56.     public function setWorker(?Worker $worker): self
  57.     {
  58.         $this->worker $worker;
  59.         return $this;
  60.     }
  61. }