<?php
namespace App\Entity;
use App\Traits\Creatable;
use App\Traits\Deleteable;
use App\Traits\Updateable;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
/**
* @ORM\Table(name="`institution_app_personalization`")
* @ORM\Entity()
* @Gedmo\SoftDeleteable(fieldName="deletedAt")
*/
class InstitutionAppPersonalization
{
use Creatable, Updateable, Deleteable;
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
private ?int $id = null;
/**
* @var ?string
* Primary color of the app (header, buttons, etc.)
* @ORM\Column(type="string", nullable=true)
*/
private ?string $primaryColor;
/**
* @var ?string
* Primary variant color of the app, slightly lighter or darker tha primary (decoration, button click, etc.)
* @ORM\Column(type="string", nullable=true)
*/
private ?string $primaryVariantColor;
/**
* @var ?string
* Color of the text located over the primary color (header's restaurant name, button's labels, etc.)
* @ORM\Column(type="string", nullable=true)
*/
private ?string $textOverPrimaryColor;
/**
* @ORM\OneToOne (targetEntity="App\Entity\Institution", inversedBy="institutionAppPersonalization")
* @ORM\JoinColumn(name="institution_id", referencedColumnName="id")
*/
private ?Institution $institution = null;
public function __construct()
{
$this->primaryColor = 'rgba(255, 57, 94, 1)';
$this->primaryVariantColor = 'rgba(228, 47, 82, 1)';
$this->textOverPrimaryColor = 'rgba(255, 255, 255, 1)';
}
public function getId(): ?int
{
return $this->id;
}
public function getPrimaryColor(): ?string
{
return $this->primaryColor;
}
public function setPrimaryColor(?string $primaryColor): self
{
$this->primaryColor = $primaryColor;
return $this;
}
public function getPrimaryVariantColor(): ?string
{
return $this->primaryVariantColor;
}
public function setPrimaryVariantColor(?string $primaryVariantColor): self
{
$this->primaryVariantColor = $primaryVariantColor;
return $this;
}
public function getTextOverPrimaryColor(): ?string
{
return $this->textOverPrimaryColor;
}
public function setTextOverPrimaryColor(?string $textOverPrimaryColor): self
{
$this->textOverPrimaryColor = $textOverPrimaryColor;
return $this;
}
public function getInstitution(): ?Institution
{
return $this->institution;
}
public function setInstitution(?Institution $institution): self
{
$this->institution = $institution;
return $this;
}
}