Skip to content

Instantly share code, notes, and snippets.

@lipeRomani
Created July 11, 2016 22:33
Show Gist options
  • Save lipeRomani/5d388d9cf7011cc86a09c274cdd92d58 to your computer and use it in GitHub Desktop.
Save lipeRomani/5d388d9cf7011cc86a09c274cdd92d58 to your computer and use it in GitHub Desktop.
<?php
namespace YodaEventBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Event
*
* @ORM\Table(name="yoda_event")
* @ORM\Entity(repositoryClass="YodaEventBundle\Repository\EventRepository")
*/
class Event
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO") *
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255)
*/
private $name;
/**
* @var \DateTime
*
* @ORM\Column(name="time", type="datetime")
*/
private $time;
/**
* @var string
*
* @ORM\Column(name="location", type="string", length=255, nullable=true)
*/
private $location;
/**
* @var string
*
* @ORM\Column(name="details", type="text",nullable=true)
*/
private $details;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set name
*
* @param string $name
*
* @return Event
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set time
*
* @param \DateTime $time
*
* @return Event
*/
public function setTime($time)
{
$this->time = $time;
return $this;
}
/**
* Get time
*
* @return \DateTime
*/
public function getTime()
{
return $this->time;
}
/**
* Set location
*
* @param string $location
*
* @return Event
*/
public function setLocation($location)
{
$this->location = $location;
return $this;
}
/**
* Get location
*
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Set details
*
* @param string $details
*
* @return Event
*/
public function setDetails($details)
{
$this->details = $details;
return $this;
}
/**
* Get details
*
* @return string
*/
public function getDetails()
{
return $this->details;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment