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

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