2016-01-12 23:51:17 +01:00
|
|
|
<?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
|
|
|
|
{
|
2016-01-13 00:23:55 +01:00
|
|
|
|
2016-01-12 23:51:17 +01:00
|
|
|
/**
|
|
|
|
* @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;
|
|
|
|
|
|
|
|
|
2016-01-13 00:23:55 +01:00
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*
|
2016-01-13 20:45:05 +01:00
|
|
|
* @ORM\Column(name="date", type="string", length=255)
|
2016-01-13 00:23:55 +01:00
|
|
|
*/
|
|
|
|
private $date;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ORM\ManyToOne(targetEntity="Team", inversedBy="Awnser")
|
2016-01-13 20:45:05 +01:00
|
|
|
* @ORM\JoinColumn(name="team_id", referencedColumnName="id")
|
2016-01-13 00:23:55 +01:00
|
|
|
*/
|
2016-01-13 20:45:05 +01:00
|
|
|
private $team;
|
2016-01-13 00:23:55 +01:00
|
|
|
|
|
|
|
/**
|
2016-01-13 20:45:05 +01:00
|
|
|
* @ORM\ManyToOne(targetEntity="Enigma", inversedBy="Awnser")
|
|
|
|
* @ORM\JoinColumn(name="enigma_id", referencedColumnName="id")
|
2016-01-13 00:23:55 +01:00
|
|
|
*/
|
2016-01-13 20:45:05 +01:00
|
|
|
private $enigma;
|
2016-01-13 00:23:55 +01:00
|
|
|
|
2016-01-13 20:45:05 +01:00
|
|
|
// /**
|
|
|
|
// * Get id
|
|
|
|
// *
|
|
|
|
// * @return int
|
|
|
|
// */
|
|
|
|
// public function getId()
|
|
|
|
// {
|
|
|
|
// return $this->id;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// /**
|
|
|
|
// * Set team
|
|
|
|
// *
|
|
|
|
// * @param string $team
|
|
|
|
// *
|
|
|
|
// * @return Awnser
|
|
|
|
// */
|
|
|
|
// public function setTeam($team)
|
|
|
|
// {
|
|
|
|
// $this->team = $team;
|
|
|
|
//
|
|
|
|
// return $this;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// /**
|
|
|
|
// * Get team
|
|
|
|
// *
|
|
|
|
// * @return string
|
|
|
|
// */
|
|
|
|
// public function getTeam()
|
|
|
|
// {
|
|
|
|
// return $this->team;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// /**
|
|
|
|
// * Set enigma
|
|
|
|
// *
|
|
|
|
// * @param string $enigma
|
|
|
|
// *
|
|
|
|
// * @return Awnser
|
|
|
|
// */
|
|
|
|
// public function setEnigma($enigma)
|
|
|
|
// {
|
|
|
|
// $this->enigma = $enigma;
|
|
|
|
//
|
|
|
|
// return $this;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// /**
|
|
|
|
// * Get enigma
|
|
|
|
// *
|
|
|
|
// * @return string
|
|
|
|
// */
|
|
|
|
// public function getEnigma()
|
|
|
|
// {
|
|
|
|
// return $this->enigma;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// /**
|
|
|
|
// * 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 date
|
|
|
|
// *
|
|
|
|
// * @param int $date
|
|
|
|
// *
|
|
|
|
// * @return Enigma
|
|
|
|
// */
|
|
|
|
// public function setDate($date)
|
|
|
|
// {
|
|
|
|
// $this->date = $date;
|
|
|
|
//
|
|
|
|
// return $this;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// /**
|
|
|
|
// * Get date
|
|
|
|
// *
|
|
|
|
// * @return int
|
|
|
|
// */
|
|
|
|
// public function getDate()
|
|
|
|
// {
|
|
|
|
// return $this->date;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// /**
|
|
|
|
// * Set team_ID
|
|
|
|
// *
|
|
|
|
// * @param int $team_ID
|
|
|
|
// *
|
|
|
|
// * @return $this
|
|
|
|
// */
|
|
|
|
// public function setTeam_ID($team_ID)
|
|
|
|
// {
|
|
|
|
// $this->team_ID = $team_ID;
|
|
|
|
//
|
|
|
|
// return $this;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// /**
|
|
|
|
// * Get team_ID
|
|
|
|
// *
|
|
|
|
// * @return int
|
|
|
|
// */
|
|
|
|
// public function getDate()
|
|
|
|
// {
|
|
|
|
// return $this->date;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// /**
|
|
|
|
// * Set date
|
|
|
|
// *
|
|
|
|
// * @param int $date
|
|
|
|
// *
|
|
|
|
// * @return $this
|
|
|
|
// */
|
|
|
|
// public function setDate($date)
|
|
|
|
// {
|
|
|
|
// $this->date = $date;
|
|
|
|
//
|
|
|
|
// return $this;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// /**
|
|
|
|
// * Get date
|
|
|
|
// *
|
|
|
|
// * @return int
|
|
|
|
// */
|
|
|
|
// public function getDate()
|
|
|
|
// {
|
|
|
|
// return $this->date;
|
|
|
|
// }
|
2016-01-12 23:51:17 +01:00
|
|
|
}
|
|
|
|
|