<?php
namespace App\Entity;
use App\Repository\CustomerTemplateRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CustomerTemplateRepository::class)]
class CustomerTemplate
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 10)]
private ?string $primaryColor;
#[ORM\Column(length: 10)]
private ?string $secondaryColor;
#[ORM\Column(length: 100)]
private ?string $footerBackgroundColor;
#[ORM\Column(length: 100)]
private ?string $footerTextColor;
#[ORM\OneToOne(targetEntity: Image::class, cascade: ['persist', 'remove'])]
#[ORM\JoinColumn(nullable: true)]
private ?Image $headerImage = null;
public function getId(): ?int
{
return $this->id;
}
public function getSecondaryColor(): ?string
{
return $this->secondaryColor;
}
public function setSecondaryColor(string $secondaryColor): self
{
$this->secondaryColor = $secondaryColor;
return $this;
}
public function getHeaderImage(): ?Image
{
return $this->headerImage;
}
public function setHeaderImage(?Image $headerImage): self
{
$this->headerImage = $headerImage;
return $this;
}
public function getPrimaryColor(): ?string
{
return $this->primaryColor;
}
public function setPrimaryColor(string $primaryColor): self
{
$this->primaryColor = $primaryColor;
return $this;
}
public function getFooterBackgroundColor(): ?string
{
return $this->footerBackgroundColor;
}
public function setFooterBackgroundColor(string $footerBackgroundColor): self
{
$this->footerBackgroundColor = $footerBackgroundColor;
return $this;
}
public function getFooterTextColor(): ?string
{
return $this->footerTextColor;
}
public function setFooterTextColor(string $footerTextColor): self
{
$this->footerTextColor = $footerTextColor;
return $this;
}
}