src/Entity/MobileAppEventPresentations.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. /**
  7.  * MobileApp_event_presentations
  8.  *
  9.  * @ORM\Table(name="MobileApp_event_presentations")
  10.  * @ORM\Entity(repositoryClass="App\Repository\MobileAppEventPresentationsRepository")
  11.  * @ORM\HasLifecycleCallbacks()
  12.  */
  13. class MobileAppEventPresentations
  14. {
  15.     /**
  16.      * @var int
  17.      *
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var int
  25.      *
  26.      * @ORM\Column(name="eid", type="integer")
  27.      */
  28.     private $eid;
  29.     /**
  30.      * @var string
  31.      *
  32.      * @ORM\Column(name="name", type="string", length=255)
  33.      */
  34.     private $name;
  35.     /**
  36.      * @var string
  37.      *
  38.      * @ORM\Column(name="title", type="string", length=255)
  39.      */
  40.     private $title;
  41.     /**
  42.      * @var string
  43.      *
  44.      * @ORM\Column(name="description", type="string", length=255)
  45.      */
  46.     private $description;
  47.     /**
  48.      * @var string
  49.      *
  50.      * @ORM\Column(name="area", type="string", length=255)
  51.      */
  52.     private $area;
  53.     /**
  54.      * @var string
  55.      *
  56.      * @ORM\Column(name="path", type="string", length=255)
  57.      * @Assert\File(
  58.      *     maxSize = "5M",
  59.      *     mimeTypes = {"application/pdf", "application/x-pdf","application/xls", "application/xlsx","application/doc", "application/docx", "application/ppt", "application/pptx"},
  60.      *     mimeTypesMessage = "Please upload a valid PDF, XLS, DOC, PPT File")
  61.      */
  62.     private $path;
  63.     /**
  64.      * @var string
  65.      *
  66.      * @ORM\Column(name="extension", type="string", length=255)
  67.      */
  68.     private $extension;
  69.     /**
  70.      * @var \DateTime
  71.      *
  72.      * @ORM\Column(name="created_at", type="datetime")
  73.      */
  74.     private $createdAt;
  75.     /**
  76.      * @var int
  77.      *
  78.      * @ORM\Column(name="created_id", type="integer")
  79.      */
  80.     private $createdId;
  81.     /**
  82.      * @var \DateTime
  83.      *
  84.      * @ORM\Column(name="updated_at", type="datetime")
  85.      */
  86.     private $updatedAt;
  87.     /**
  88.      * @var int
  89.      *
  90.      * @ORM\Column(name="updated_id", type="integer")
  91.      */
  92.     private $updatedId;
  93.     /**
  94.      * Get id
  95.      *
  96.      * @return int
  97.      */
  98.     public function getId()
  99.     {
  100.         return $this->id;
  101.     }
  102.     /**
  103.      * Set eid
  104.      *
  105.      * @param integer $eid
  106.      *
  107.      * @return MobileApp_event_presentations
  108.      */
  109.     public function setEid($eid)
  110.     {
  111.         $this->eid $eid;
  112.         return $this;
  113.     }
  114.     /**
  115.      * Get eid
  116.      *
  117.      * @return int
  118.      */
  119.     public function getEid()
  120.     {
  121.         return $this->eid;
  122.     }
  123.     /**
  124.      * Set name
  125.      *
  126.      * @param string $name
  127.      *
  128.      * @return MobileApp_event_presentations
  129.      */
  130.     public function setName($name)
  131.     {
  132.         $this->name $name;
  133.         return $this;
  134.     }
  135.     /**
  136.      * Get name
  137.      *
  138.      * @return string
  139.      */
  140.     public function getName()
  141.     {
  142.         return $this->name;
  143.     }
  144.     /**
  145.      * Set path
  146.      *
  147.      * @param string $path
  148.      *
  149.      * @return MobileApp_event_presentations
  150.      */
  151.     public function setPath($path)
  152.     {
  153.         $this->path $path;
  154.         return $this;
  155.     }
  156.     /**
  157.      * Get path
  158.      *
  159.      * @return string
  160.      */
  161.     public function getPath()
  162.     {
  163.         return $this->path;
  164.     }
  165.     /**
  166.      * Set createdAt
  167.      *
  168.      * @param \DateTime $createdAt
  169.      *
  170.      * @return MobileApp_event_presentations
  171.      */
  172.     public function setCreatedAt(\Datetime $createdAt)
  173.     {
  174.         $this->createdAt $createdAt;
  175.         return $this;
  176.     }
  177.     /**
  178.      * Get createdAt
  179.      *
  180.      * @return \DateTime
  181.      */
  182.     public function getCreatedAt()
  183.     {
  184.         return $this->createdAt;
  185.     }
  186.     /**
  187.      * Set createdId
  188.      *
  189.      * @param integer $createdId
  190.      *
  191.      * @return MobileApp_event_presentations
  192.      */
  193.     public function setCreatedId($createdId)
  194.     {
  195.         $this->createdId $createdId;
  196.         return $this;
  197.     }
  198.     /**
  199.      * Get createdId
  200.      *
  201.      * @return int
  202.      */
  203.     public function getCreatedId()
  204.     {
  205.         return $this->createdId;
  206.     }
  207.     /**
  208.      * Set updatedAt
  209.      *
  210.      * @param \DateTime $updatedAt
  211.      *
  212.      * @return MobileApp_event_presentations
  213.      */
  214.     public function setUpdatedAt(\Datetime $updatedAt)
  215.     {
  216.         $this->updatedAt $updatedAt;
  217.         return $this;
  218.     }
  219.     /**
  220.      * Get updatedAt
  221.      *
  222.      * @return \DateTime
  223.      */
  224.     public function getUpdatedAt()
  225.     {
  226.         return $this->updatedAt;
  227.     }
  228.     /**
  229.      * Set updatedId
  230.      *
  231.      * @param integer $updatedId
  232.      *
  233.      * @return MobileApp_event_presentations
  234.      */
  235.     public function setUpdatedId($updatedId)
  236.     {
  237.         $this->updatedId $updatedId;
  238.         return $this;
  239.     }
  240.     /**
  241.      * Get updatedId
  242.      *
  243.      * @return int
  244.      */
  245.     public function getUpdatedId()
  246.     {
  247.         return $this->updatedId;
  248.     }
  249.     /**
  250.      * @ORM\PrePersist
  251.      */
  252.     public function setCreatedAtValue()
  253.     {
  254.         $this->createdAt = new \Datetime();
  255.     }
  256.     /**
  257.      * @ORM\PrePersist
  258.      * @ORM\PreUpdate
  259.      */
  260.     public function setUpdatedAtValue()
  261.     {
  262.         $this->updatedAt = new \Datetime();
  263.     }
  264.     /**
  265.      * Set title
  266.      *
  267.      * @param string $title
  268.      *
  269.      * @return MobileAppEventPresentations
  270.      */
  271.     public function setTitle($title)
  272.     {
  273.         $this->title $title;
  274.         return $this;
  275.     }
  276.     /**
  277.      * Get title
  278.      *
  279.      * @return string
  280.      */
  281.     public function getTitle()
  282.     {
  283.         return $this->title;
  284.     }
  285.     /**
  286.      * Set description
  287.      *
  288.      * @param string $description
  289.      *
  290.      * @return MobileAppEventPresentations
  291.      */
  292.     public function setDescription($description)
  293.     {
  294.         $this->description $description;
  295.         return $this;
  296.     }
  297.     /**
  298.      * Get description
  299.      *
  300.      * @return string
  301.      */
  302.     public function getDescription()
  303.     {
  304.         return $this->description;
  305.     }
  306.     /**
  307.      * Set area
  308.      *
  309.      * @param string $area
  310.      *
  311.      * @return MobileAppEventPresentations
  312.      */
  313.     public function setArea($area)
  314.     {
  315.         $this->area $area;
  316.         return $this;
  317.     }
  318.     /**
  319.      * Get area
  320.      *
  321.      * @return string
  322.      */
  323.     public function getArea()
  324.     {
  325.         return $this->area;
  326.     }
  327.     /**
  328.      * Set extension
  329.      *
  330.      * @param string $extension
  331.      *
  332.      * @return MobileAppEventPresentations
  333.      */
  334.     public function setExtension($extension)
  335.     {
  336.         $this->extension $extension;
  337.         return $this;
  338.     }
  339.     /**
  340.      * Get extension
  341.      *
  342.      * @return string
  343.      */
  344.     public function getExtension()
  345.     {
  346.         return $this->extension;
  347.     }
  348. }