<?php
namespace App\Entity\MarketingPanel;
use App\Entity\BaseEntity;
use App\Entity\Website\Website\Website;
use App\Repository\MarketingPanel\SmsTemplateRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
#[ORM\Entity(repositoryClass: SmsTemplateRepository::class)]
class SmsTemplate extends BaseEntity
{
#[ORM\Id]
#[ORM\Column(type: 'guid', unique: true)]
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
#[ORM\CustomIdGenerator(class: UuidGenerator::class)]
private $id;
#[ORM\ManyToOne(inversedBy: 'smsTemplates')]
#[ORM\JoinColumn(nullable: false)]
private ?Website $website = null;
#[ORM\Column(length: 255)]
private ?string $label = null;
#[ORM\Column(type: Types::TEXT)]
private ?string $text = null;
public function getId(): ?int
{
return $this->id;
}
public function getWebsite(): ?Website
{
return $this->website;
}
public function setWebsite(?Website $shop): static
{
$this->website = $shop;
return $this;
}
public function getLabel(): ?string
{
return $this->label;
}
public function setLabel(string $label): static
{
$this->label = $label;
return $this;
}
public function getText(): ?string
{
return $this->text;
}
public function setText(string $text): static
{
$this->text = $text;
return $this;
}
}