<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
* MobileApp_event_presentations
*
* @ORM\Table(name="MobileApp_event_presentations")
* @ORM\Entity(repositoryClass="App\Repository\MobileAppEventPresentationsRepository")
* @ORM\HasLifecycleCallbacks()
*/
class MobileAppEventPresentations
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var int
*
* @ORM\Column(name="eid", type="integer")
*/
private $eid;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255)
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="title", type="string", length=255)
*/
private $title;
/**
* @var string
*
* @ORM\Column(name="description", type="string", length=255)
*/
private $description;
/**
* @var string
*
* @ORM\Column(name="area", type="string", length=255)
*/
private $area;
/**
* @var string
*
* @ORM\Column(name="path", type="string", length=255)
* @Assert\File(
* maxSize = "5M",
* mimeTypes = {"application/pdf", "application/x-pdf","application/xls", "application/xlsx","application/doc", "application/docx", "application/ppt", "application/pptx"},
* mimeTypesMessage = "Please upload a valid PDF, XLS, DOC, PPT File")
*/
private $path;
/**
* @var string
*
* @ORM\Column(name="extension", type="string", length=255)
*/
private $extension;
/**
* @var \DateTime
*
* @ORM\Column(name="created_at", type="datetime")
*/
private $createdAt;
/**
* @var int
*
* @ORM\Column(name="created_id", type="integer")
*/
private $createdId;
/**
* @var \DateTime
*
* @ORM\Column(name="updated_at", type="datetime")
*/
private $updatedAt;
/**
* @var int
*
* @ORM\Column(name="updated_id", type="integer")
*/
private $updatedId;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set eid
*
* @param integer $eid
*
* @return MobileApp_event_presentations
*/
public function setEid($eid)
{
$this->eid = $eid;
return $this;
}
/**
* Get eid
*
* @return int
*/
public function getEid()
{
return $this->eid;
}
/**
* Set name
*
* @param string $name
*
* @return MobileApp_event_presentations
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set path
*
* @param string $path
*
* @return MobileApp_event_presentations
*/
public function setPath($path)
{
$this->path = $path;
return $this;
}
/**
* Get path
*
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Set createdAt
*
* @param \DateTime $createdAt
*
* @return MobileApp_event_presentations
*/
public function setCreatedAt(\Datetime $createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set createdId
*
* @param integer $createdId
*
* @return MobileApp_event_presentations
*/
public function setCreatedId($createdId)
{
$this->createdId = $createdId;
return $this;
}
/**
* Get createdId
*
* @return int
*/
public function getCreatedId()
{
return $this->createdId;
}
/**
* Set updatedAt
*
* @param \DateTime $updatedAt
*
* @return MobileApp_event_presentations
*/
public function setUpdatedAt(\Datetime $updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Get updatedAt
*
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updatedAt;
}
/**
* Set updatedId
*
* @param integer $updatedId
*
* @return MobileApp_event_presentations
*/
public function setUpdatedId($updatedId)
{
$this->updatedId = $updatedId;
return $this;
}
/**
* Get updatedId
*
* @return int
*/
public function getUpdatedId()
{
return $this->updatedId;
}
/**
* @ORM\PrePersist
*/
public function setCreatedAtValue()
{
$this->createdAt = new \Datetime();
}
/**
* @ORM\PrePersist
* @ORM\PreUpdate
*/
public function setUpdatedAtValue()
{
$this->updatedAt = new \Datetime();
}
/**
* Set title
*
* @param string $title
*
* @return MobileAppEventPresentations
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* Get title
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Set description
*
* @param string $description
*
* @return MobileAppEventPresentations
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set area
*
* @param string $area
*
* @return MobileAppEventPresentations
*/
public function setArea($area)
{
$this->area = $area;
return $this;
}
/**
* Get area
*
* @return string
*/
public function getArea()
{
return $this->area;
}
/**
* Set extension
*
* @param string $extension
*
* @return MobileAppEventPresentations
*/
public function setExtension($extension)
{
$this->extension = $extension;
return $this;
}
/**
* Get extension
*
* @return string
*/
public function getExtension()
{
return $this->extension;
}
}