src/Entity/Slave/TicketColumnValue.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Slave;
  3. use App\Twig\Extension\AppExtension;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * @ORM\Table(name="eposm_s_ticket_column_value")
  10.  * @ORM\Entity(repositoryClass="App\Repository\Slave\TicketColumnValueRepository")
  11.  */
  12. class TicketColumnValue
  13. {    
  14.     public function getCanDelete(){
  15.         return true;
  16.     }
  17.     /**
  18.      * @ORM\Column(name="id", type="bigint")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     protected $id;
  23.     /**
  24.      * @ORM\Column(name="ticket_column", type="string", length=191)
  25.      */
  26.     protected $ticketColumn;
  27.     
  28.     /**
  29.      * @ORM\Column(name="needle", type="string", length=191)
  30.      */
  31.     protected $needle;
  32.     /**
  33.      * @ORM\Column(name="value", type="string", length=191)
  34.      */
  35.     protected $value;
  36.     // ManyToOne
  37.         /**
  38.          * @ORM\ManyToOne(targetEntity="App\Entity\Slave\Supplier", inversedBy="ticketColumnValues")
  39.          * @ORM\JoinColumn(name="supplier_id", referencedColumnName="id")
  40.          */
  41.         private $supplier;
  42.         public function getId(): ?string
  43.         {
  44.             return $this->id;
  45.         }
  46.         public function getTicketColumn(): ?string
  47.         {
  48.             return $this->ticketColumn;
  49.         }
  50.         public function setTicketColumn(string $ticketColumn): static
  51.         {
  52.             $this->ticketColumn $ticketColumn;
  53.             return $this;
  54.         }
  55.         public function getNeedle(): ?string
  56.         {
  57.             return $this->needle;
  58.         }
  59.         public function setNeedle(string $needle): static
  60.         {
  61.             $this->needle $needle;
  62.             return $this;
  63.         }
  64.         public function getValue(): ?string
  65.         {
  66.             return $this->value;
  67.         }
  68.         public function setValue(string $value): static
  69.         {
  70.             $this->value $value;
  71.             return $this;
  72.         }
  73.         public function getSupplier(): ?Supplier
  74.         {
  75.             return $this->supplier;
  76.         }
  77.         public function setSupplier(?Supplier $supplier): static
  78.         {
  79.             $this->supplier $supplier;
  80.             return $this;
  81.         }
  82. }