129 lines
1.8 KiB
PHP
129 lines
1.8 KiB
PHP
<?php
|
|
|
|
namespace Mmi\Bundle\EnigmaBundle\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* Timer
|
|
*
|
|
* @ORM\Table(name="timer")
|
|
* @ORM\Entity(repositoryClass="Mmi\Bundle\EnigmaBundle\Repository\TimerRepository")
|
|
*/
|
|
class Timer
|
|
{
|
|
/**
|
|
* @var int
|
|
*
|
|
* @ORM\Column(name="id", type="integer")
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @var \DateTime
|
|
*
|
|
* @ORM\Column(name="date", type="datetime")
|
|
*/
|
|
private $date;
|
|
|
|
/**
|
|
* @var int
|
|
*
|
|
* @ORM\Column(name="team", type="integer")
|
|
*/
|
|
private $team;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="enigma", type="string", length=255)
|
|
*/
|
|
private $enigma;
|
|
|
|
|
|
/**
|
|
* Get id
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Set date
|
|
*
|
|
* @param \DateTime $date
|
|
*
|
|
* @return Timer
|
|
*/
|
|
public function setDate($date)
|
|
{
|
|
$this->date = $date;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get date
|
|
*
|
|
* @return \DateTime
|
|
*/
|
|
public function getDate()
|
|
{
|
|
return $this->date;
|
|
}
|
|
|
|
/**
|
|
* Set team
|
|
*
|
|
* @param integer $team
|
|
*
|
|
* @return Timer
|
|
*/
|
|
public function setTeam($team)
|
|
{
|
|
$this->team = $team;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get team
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getTeam()
|
|
{
|
|
return $this->team;
|
|
}
|
|
|
|
/**
|
|
* Set enigma
|
|
*
|
|
* @param string $enigma
|
|
*
|
|
* @return Timer
|
|
*/
|
|
public function setEnigma($enigma)
|
|
{
|
|
$this->enigma = $enigma;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get enigma
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getEnigma()
|
|
{
|
|
return $this->enigma;
|
|
}
|
|
}
|
|
|