src/Entity/PdfmenuPersonalization.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Traits\Creatable;
  4. use App\Traits\Deleteable;
  5. use App\Traits\Updateable;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Gedmo\Mapping\Annotation as Gedmo;
  8. /**
  9.  * @ORM\Table(name="`pdfmenu_personalization`")
  10.  * @ORM\Entity()
  11.  * @Gedmo\SoftDeleteable(fieldName="deletedAt")
  12.  * @ORM\HasLifecycleCallbacks()
  13.  */
  14. class PdfmenuPersonalization
  15. {
  16.     use CreatableUpdateableDeleteable;
  17.     /**
  18.      * @ORM\Id
  19.      * @ORM\Column(type="integer")
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private ?int $id null;
  23.     /**
  24.      * @var ?string
  25.      *
  26.      * @ORM\Column(type="string", nullable=true)
  27.      */
  28.     private ?string $title;
  29.     /**
  30.      * @var ?string
  31.      *
  32.      * @ORM\Column(type="string", nullable=true)
  33.      */
  34.     private ?string $subTitle;
  35.     /**
  36.      * @var ?string
  37.      *
  38.      * @ORM\Column(type="string", nullable=true)
  39.      */
  40.     private ?string $backgroundColor;
  41.     /**
  42.      * @var ?string
  43.      *
  44.      * @ORM\Column(type="string", nullable=true)
  45.      */
  46.     private ?string $titleColor;
  47.     /**
  48.      * @var ?string
  49.      *
  50.      * @ORM\Column(type="string", nullable=true)
  51.      */
  52.     private ?string $subTitleColor;
  53.     /**
  54.      * @var ?string
  55.      *
  56.      * @ORM\Column(type="string", nullable=true)
  57.      */
  58.     private ?string $buttonBackgroundColor;
  59.     /**
  60.      * @var ?string
  61.      *
  62.      * @ORM\Column(type="string", nullable=true)
  63.      */
  64.     private ?string $buttonTextColor;
  65.     /**
  66.      * @ORM\OneToOne (targetEntity="App\Entity\Institution", inversedBy="pdfmenuPersonalization")
  67.      * @ORM\JoinColumn(name="institution_id", referencedColumnName="id")
  68.      */
  69.     private ?Institution $institution null;
  70.     /**
  71.      * @var false
  72.      * @ORM\Column(type="boolean")
  73.      */
  74.     private bool $displayLogo;
  75.     /**
  76.      * @var ?string (LIST|TAB|SLIDER)
  77.      * @ORM\Column(type="string", options={"default": "LIST"})
  78.      */
  79.     private ?string $displayMode;
  80.     public function __construct()
  81.     {
  82.         $this->title 'Bienvenue sur le menu de votre établissement !';
  83.         $this->subTitle 'Quelle carte voulez-vous consulter ?';
  84.         $this->backgroundColor 'rgba(255, 245, 247, 1)';
  85.         $this->titleColor 'rgba(255, 57, 94, 1)';
  86.         $this->subTitleColor 'rgba(255, 57, 94, 1)';
  87.         $this->buttonBackgroundColor 'rgba(255, 57, 94, 1)';
  88.         $this->buttonTextColor 'rgba(255, 245, 247, 1)';
  89.         $this->displayLogo false;
  90.         $this->displayMode 'LIST';
  91.     }
  92.     public function getId(): ?int
  93.     {
  94.         return $this->id;
  95.     }
  96.     public function getTitle(): ?string
  97.     {
  98.         return $this->title;
  99.     }
  100.     public function setTitle(?string $title): self
  101.     {
  102.         $this->title $title;
  103.         return $this;
  104.     }
  105.     public function getSubTitle(): ?string
  106.     {
  107.         return $this->subTitle;
  108.     }
  109.     public function setSubTitle(?string $subTitle): self
  110.     {
  111.         $this->subTitle $subTitle;
  112.         return $this;
  113.     }
  114.     public function getBackgroundColor(): ?string
  115.     {
  116.         return $this->backgroundColor;
  117.     }
  118.     public function setBackgroundColor(?string $backgroundColor): self
  119.     {
  120.         $this->backgroundColor $backgroundColor;
  121.         return $this;
  122.     }
  123.     public function getTitleColor(): ?string
  124.     {
  125.         return $this->titleColor;
  126.     }
  127.     public function setTitleColor(?string $titleColor): self
  128.     {
  129.         $this->titleColor $titleColor;
  130.         return $this;
  131.     }
  132.     public function getSubTitleColor(): ?string
  133.     {
  134.         return $this->subTitleColor;
  135.     }
  136.     public function setSubTitleColor(?string $subTitleColor): self
  137.     {
  138.         $this->subTitleColor $subTitleColor;
  139.         return $this;
  140.     }
  141.     public function getButtonBackgroundColor(): ?string
  142.     {
  143.         return $this->buttonBackgroundColor;
  144.     }
  145.     public function setButtonBackgroundColor(?string $buttonBackgroundColor): self
  146.     {
  147.         $this->buttonBackgroundColor $buttonBackgroundColor;
  148.         return $this;
  149.     }
  150.     public function getButtonTextColor(): ?string
  151.     {
  152.         return $this->buttonTextColor;
  153.     }
  154.     public function setButtonTextColor(?string $buttonTextColor): self
  155.     {
  156.         $this->buttonTextColor $buttonTextColor;
  157.         return $this;
  158.     }
  159.     public function getInstitution(): ?Institution
  160.     {
  161.         return $this->institution;
  162.     }
  163.     public function setInstitution(?Institution $institution): self
  164.     {
  165.         $this->institution $institution;
  166.         return $this;
  167.     }
  168.     public function getDisplayLogo(): ?bool
  169.     {
  170.         return $this->displayLogo;
  171.     }
  172.     public function setDisplayLogo(?bool $displayLogo): self
  173.     {
  174.         $this->displayLogo $displayLogo;
  175.         return $this;
  176.     }
  177.     public function getDisplayMode(): ?string
  178.     {
  179.         return $this->displayMode;
  180.     }
  181.     public function setDisplayMode(?string $displayMode): self
  182.     {
  183.         $this->displayMode $displayMode;
  184.         return $this;
  185.     }
  186. }