From 188600a044dbe715f46c1a59a12c4ae61258014d Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 13 Jan 2016 21:07:38 +0100 Subject: [PATCH] enigma hash --- src/Mmi/Bundle/EnigmaBundle/Entity/Enigma.php | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/Mmi/Bundle/EnigmaBundle/Entity/Enigma.php b/src/Mmi/Bundle/EnigmaBundle/Entity/Enigma.php index 48f119b..a8ce667 100644 --- a/src/Mmi/Bundle/EnigmaBundle/Entity/Enigma.php +++ b/src/Mmi/Bundle/EnigmaBundle/Entity/Enigma.php @@ -34,6 +34,13 @@ class Enigma * @ORM\Column(name="content", type="string", length=255) */ private $content; + + /** + * @var string + * + * @ORM\Column(name="hash", type="string", length=32) + */ + private $hash; /** @@ -93,4 +100,28 @@ class Enigma { 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; + } }