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

128 lines
1.9 KiB
PHP

<?php
namespace Mmi\Bundle\EnigmaBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Enigma
*
* @ORM\Table(name="enigma")
* @ORM\Entity(repositoryClass="Mmi\Bundle\EnigmaBundle\Repository\EnigmaRepository")
*/
class Enigma
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="title", type="string", length=255)
*/
private $title;
/**
* @var string
*
* @ORM\Column(name="content", type="string", length=255)
*/
private $content;
/**
* @var string
*
* @ORM\Column(name="hash", type="string", length=32)
*/
private $hash;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set title
*
* @param string $title
*
* @return Enigma
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* Get title
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Set content
*
* @param string $content
*
* @return Enigma
*/
public function setContent($content)
{
$this->content = $content;
return $this;
}
/**
* Get content
*
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* Set hash
*
* @param string $hash
*
* @return Enigma
*/
public function setHash($hash)
{
$this->hash = $hash;
return $this;
}
/**
* Get hash
*
* @return string
*/
public function getHash()
{
return $this->hash;
}
}