vendor/uvdesk/core-framework/Entity/Attachment.php line 251

Open in your IDE?
  1. <?php
  2. namespace Webkul\UVDesk\CoreFrameworkBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /** 
  5.  * @ORM\Entity()
  6.  * @ORM\HasLifecycleCallbacks()
  7.  * @ORM\Table(name="uv_ticket_attachments")
  8.  */
  9. class Attachment
  10. {
  11.     /**
  12.      * @var integer
  13.      * 
  14.      * @ORM\Id
  15.      * @ORM\Column(type="integer")
  16.      * @ORM\GeneratedValue
  17.      * 
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      * @ORM\Column(type="text", nullable=true)
  23.      */
  24.     private $name;
  25.     /**
  26.      * @var string
  27.      * @ORM\Column(name="path", type="text", nullable=true)
  28.      */
  29.     private $path;
  30.     /**
  31.      * @var string
  32.      * 
  33.      * @ORM\Column(name="content_type", length=255, type="string", nullable=true)
  34.      */
  35.     private $contentType;
  36.     /**
  37.      * @var integer
  38.      * 
  39.      * @ORM\Column(name="size", type="integer", nullable=true)
  40.      */
  41.     private $size;
  42.     /**
  43.      * @var string
  44.      * 
  45.      * 
  46.      */
  47.     public $attachmentThumb;
  48.     /**
  49.      * @var integer
  50.      */
  51.     public $attachmentOrginal;
  52.     /**
  53.      * @var string
  54.      * 
  55.      * @ORM\Column(name="content_id", type="string", length=255, nullable=true)
  56.      */
  57.     private $contentId;
  58.     /**
  59.      * @var string
  60.      * 
  61.      * @ORM\Column(name="file_system", type="string", length=255, nullable=true)
  62.      */
  63.     private $fileSystem;
  64.     /**
  65.      * @var \Webkul\TicketBundle\Entity\Thread
  66.      * 
  67.      * @ORM\ManyToOne(targetEntity="Thread", inversedBy="attachments")
  68.      * @ORM\JoinColumn(name="thread_id", referencedColumnName="id", onDelete="CASCADE")
  69.      */
  70.     private $thread;
  71.     /**
  72.      * Get id
  73.      *
  74.      * @return integer 
  75.      */
  76.     public function getId()
  77.     {
  78.         return $this->id;
  79.     }
  80.     /**
  81.      * Set name
  82.      *
  83.      * @param string $name
  84.      * @return Attachment
  85.      */
  86.     public function setName($name)
  87.     {
  88.         $this->name $name;
  89.         return $this;
  90.     }
  91.     /**
  92.      * Get name
  93.      *
  94.      * @return string 
  95.      */
  96.     public function getName()
  97.     {
  98.         return $this->name;
  99.     }
  100.     /**
  101.      * Set path
  102.      *
  103.      * @param string $path
  104.      * @return Attachment
  105.      */
  106.     public function setPath($path)
  107.     {
  108.         $this->path $path;
  109.         return $this;
  110.     }
  111.     /**
  112.      * Get path
  113.      *
  114.      * @return string 
  115.      */
  116.     public function getPath()
  117.     {
  118.         return $this->path;
  119.     }
  120.     public function getAttachmentThumb()
  121.     {
  122.         return $this->attachmentThumb;
  123.     }
  124.     public function getAttachmentOrginal()
  125.     {
  126.         return $this->attachmentOrginal;
  127.     }
  128.     /**
  129.      * Set contentType
  130.      *
  131.      * @param string $contentType
  132.      * @return Attachment
  133.      */
  134.     public function setContentType($contentType)
  135.     {
  136.         $this->contentType $contentType;
  137.         return $this;
  138.     }
  139.     /**
  140.      * Get contentType
  141.      *
  142.      * @return string 
  143.      */
  144.     public function getContentType()
  145.     {
  146.         return $this->contentType;
  147.     }
  148.     /**
  149.      * Set size
  150.      *
  151.      * @param integer $size
  152.      * @return Attachment
  153.      */
  154.     public function setSize($size)
  155.     {
  156.         $this->size $size;
  157.         return $this;
  158.     }
  159.     /**
  160.      * Get size
  161.      *
  162.      * @return integer 
  163.      */
  164.     public function getSize()
  165.     {
  166.         return $this->size;
  167.     }
  168.     /**
  169.      * Set contentId
  170.      *
  171.      * @param string $contentId
  172.      * @return Attachment
  173.      */
  174.     public function setContentId($contentId)
  175.     {
  176.         $this->contentId $contentId;
  177.         return $this;
  178.     }
  179.     /**
  180.      * Get contentId
  181.      *
  182.      * @return string 
  183.      */
  184.     public function getContentId()
  185.     {
  186.         return $this->contentId;
  187.     }
  188.     /**
  189.      * Set fileSystem
  190.      *
  191.      * @param string $fileSystem
  192.      * @return Attachment
  193.      */
  194.     public function setFileSystem($fileSystem)
  195.     {
  196.         $this->fileSystem $fileSystem;
  197.         return $this;
  198.     }
  199.     /**
  200.      * Get fileSystem
  201.      *
  202.      * @return string 
  203.      */
  204.     public function getFileSystem()
  205.     {
  206.         return $this->fileSystem;
  207.     }
  208.     /**
  209.      * Set thread
  210.      *
  211.      * @param \Webkul\TicketBundle\Entity\Thread $thread
  212.      * @return Attachment
  213.      * 
  214.      */
  215.     public function setThread(\Webkul\UVDesk\CoreFrameworkBundle\Entity\Thread $thread null)
  216.     {
  217.         $this->thread $thread;
  218.         return $this;
  219.     }
  220.     /**
  221.      * Get thread
  222.      *
  223.      * @return \Webkul\UVDesk\CoreFrameworkBundle\Entity\Thread 
  224.      */
  225.     public function getThread()
  226.     {
  227.         return $this->thread;
  228.     }
  229. }