src/Entity/Slave/SupplierTicketEmail.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Slave;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Table(name="eposm_s_supplier_ticket_email")
  9.  * @ORM\Entity(repositoryClass="App\Repository\Slave\SupplierTicketEmailRepository")
  10.  */
  11. class SupplierTicketEmail
  12. {
  13.     public function __toString()
  14.           {
  15.               return $this->getValue();
  16.           }
  17.     /**
  18.      * @ORM\Column(name="id", type="bigint")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     protected $id;
  23.     
  24.     /**
  25.      * @ORM\Column(name="value", type="string", length=191)
  26.      */
  27.     protected $value;
  28.     
  29.     /**
  30.      * @ORM\Column(name="is_html", type="boolean")
  31.      */
  32.     protected $html false;
  33.     
  34.     // ManyToOne
  35.         /**
  36.          * @ORM\ManyToOne(targetEntity="App\Entity\Slave\Supplier", inversedBy="ticketEmails")
  37.          * @ORM\JoinColumn(name="supplier_id", referencedColumnName="id")
  38.          */
  39.         private $supplier;
  40.     //
  41.     
  42.     public function getId(): ?string
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function getValue(): ?string
  47.     {
  48.         return $this->value;
  49.     }
  50.     public function setValue(string $value): self
  51.     {
  52.         $this->value $value;
  53.         return $this;
  54.     }
  55.     public function getSupplier(): ?Supplier
  56.     {
  57.         return $this->supplier;
  58.     }
  59.     public function setSupplier(?Supplier $supplier): self
  60.     {
  61.         $this->supplier $supplier;
  62.         return $this;
  63.     }
  64.     public function isHtml(): ?bool
  65.     {
  66.         return $this->html;
  67.     }
  68.     public function setHtml(bool $html): static
  69.     {
  70.         $this->html $html;
  71.         return $this;
  72.     }
  73. }