<?php
namespace App\Entity\Slave;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="eposm_s_supplier_ticket_email")
* @ORM\Entity(repositoryClass="App\Repository\Slave\SupplierTicketEmailRepository")
*/
class SupplierTicketEmail
{
public function __toString()
{
return $this->getValue();
}
/**
* @ORM\Column(name="id", type="bigint")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(name="value", type="string", length=191)
*/
protected $value;
/**
* @ORM\Column(name="is_html", type="boolean")
*/
protected $html = false;
// ManyToOne
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Slave\Supplier", inversedBy="ticketEmails")
* @ORM\JoinColumn(name="supplier_id", referencedColumnName="id")
*/
private $supplier;
//
public function getId(): ?string
{
return $this->id;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(string $value): self
{
$this->value = $value;
return $this;
}
public function getSupplier(): ?Supplier
{
return $this->supplier;
}
public function setSupplier(?Supplier $supplier): self
{
$this->supplier = $supplier;
return $this;
}
public function isHtml(): ?bool
{
return $this->html;
}
public function setHtml(bool $html): static
{
$this->html = $html;
return $this;
}
}