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.         public function getId(): ?string
  41.         {
  42.             return $this->id;
  43.         }
  44.         public function getValue(): ?string
  45.         {
  46.             return $this->value;
  47.         }
  48.         public function setValue(string $value): static
  49.         {
  50.             $this->value $value;
  51.             return $this;
  52.         }
  53.         public function getSupplier(): ?Supplier
  54.         {
  55.             return $this->supplier;
  56.         }
  57.         public function setSupplier(?Supplier $supplier): static
  58.         {
  59.             $this->supplier $supplier;
  60.             return $this;
  61.         }
  62.     public function isHtml(): ?bool
  63.     {
  64.         return $this->html;
  65.     }
  66.     public function setHtml(bool $html): static
  67.     {
  68.         $this->html $html;
  69.         return $this;
  70.     }
  71. }