defis48/src/Mmi/Bundle/EnigmaBundle/Entity/Awnser.php~
2016-01-13 21:29:34 +01:00

159 lines
2.6 KiB
PHP

<?php
namespace Mmi\Bundle\EnigmaBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Awnser
*
* @ORM\Table(name="awnser")
* @ORM\Entity(repositoryClass="Mmi\Bundle\EnigmaBundle\Repository\AwnserRepository")
*/
class Awnser
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="content", type="string", length=255)
*/
private $content;
/**
* @var DateTime
*
* @ORM\Column(name="date", type="datetime")
*/
private $date;
/**
* @ORM\ManyToOne(targetEntity="Team", inversedBy="Awnser")
* @ORM\JoinColumn(name="team_id", referencedColumnName="id")
*/
private $team;
/**
* @ORM\ManyToOne(targetEntity="Enigma", inversedBy="Awnser")
* @ORM\JoinColumn(name="enigma_id", referencedColumnName="id")
*/
private $enigma;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set content
*
* @param string $content
*
* @return Awnser
*/
public function setContent($content)
{
$this->content = $content;
return $this;
}
/**
* Get content
*
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* Set team
*
* @param \Mmi\Bundle\EnigmaBundle\Entity\Team $team
*
* @return Awnser
*/
public function setTeam(\Mmi\Bundle\EnigmaBundle\Entity\Team $team = null)
{
$this->team = $team;
return $this;
}
/**
* Get team
*
* @return \Mmi\Bundle\EnigmaBundle\Entity\Team
*/
public function getTeam()
{
return $this->team;
}
/**
* Set enigma
*
* @param \Mmi\Bundle\EnigmaBundle\Entity\Enigma $enigma
*
* @return Awnser
*/
public function setEnigma(\Mmi\Bundle\EnigmaBundle\Entity\Enigma $enigma = null)
{
$this->enigma = $enigma;
return $this;
}
/**
* Get enigma
*
* @return \Mmi\Bundle\EnigmaBundle\Entity\Enigma
*/
public function getEnigma()
{
return $this->enigma;
}
/**
* Set date
*
* @param \DateTime $date
*
* @return Awnser
*/
public function setDate($date)
{
$this->date = $date;
return $this;
}
/**
* Get date
*
* @return \DateTime
*/
public function getDate()
{
return $this->date;
}
}