From 9d8c6cb979e4003b42ca319344eb8c26de40e7fc Mon Sep 17 00:00:00 2001 From: Dorian Lods Date: Wed, 13 Jan 2016 21:29:34 +0100 Subject: [PATCH] defis --- .../Resources/Model/ChallengePeer.php | 25 ++- .../Bundle/EnigmaBundle/Entity/Awnser.php~ | 158 ++++++++++++++++++ .../Bundle/EnigmaBundle/Entity/Enigma.php~ | 127 ++++++++++++++ src/Mmi/Bundle/EnigmaBundle/Entity/Team.php~ | 96 +++++++++++ src/Mmi/Bundle/EnigmaBundle/Entity/Timer.php~ | 125 ++++++++++++++ 5 files changed, 517 insertions(+), 14 deletions(-) create mode 100644 src/Mmi/Bundle/EnigmaBundle/Entity/Awnser.php~ create mode 100644 src/Mmi/Bundle/EnigmaBundle/Entity/Enigma.php~ create mode 100644 src/Mmi/Bundle/EnigmaBundle/Entity/Team.php~ create mode 100644 src/Mmi/Bundle/EnigmaBundle/Entity/Timer.php~ diff --git a/src/Mmi/Bundle/ChallengeBundle/Resources/Model/ChallengePeer.php b/src/Mmi/Bundle/ChallengeBundle/Resources/Model/ChallengePeer.php index 6ee81f8..3f080d4 100644 --- a/src/Mmi/Bundle/ChallengeBundle/Resources/Model/ChallengePeer.php +++ b/src/Mmi/Bundle/ChallengeBundle/Resources/Model/ChallengePeer.php @@ -29,21 +29,18 @@ class ChallengePeer { $data = []; - for ($i = 18; $i < 25; $i++) { - $data[] = (new Challenge()) - ->setTitle('Mon titre '.$i) - ->setDescription('Ma description '.$i) - ->setDay(1) - ->setHour($i); - } + $data[] = (new Challenge()) + ->setTitle('Défi Facebook') + ->setDescription('Le BDE offre les pizzas à L\'équipe qui a un maximum de j\'aimes sur Facebook d\'ici le prochain défi, tous les cousp sont permis.') + ->setDay(1) + ->setHour(18); + + $data[] = (new Challenge()) + ->setTitle('') + ->setDescription('') + ->setDay(1) + ->setHour(18); - for ($i = 1; $i < 19; $i++) { - $data[] = (new Challenge()) - ->setTitle('Mon titre '.$i) - ->setDescription('Ma description '.$i) - ->setDay(2) - ->setHour($i); - } return $data; } diff --git a/src/Mmi/Bundle/EnigmaBundle/Entity/Awnser.php~ b/src/Mmi/Bundle/EnigmaBundle/Entity/Awnser.php~ new file mode 100644 index 0000000..2e52034 --- /dev/null +++ b/src/Mmi/Bundle/EnigmaBundle/Entity/Awnser.php~ @@ -0,0 +1,158 @@ +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; + } +} diff --git a/src/Mmi/Bundle/EnigmaBundle/Entity/Enigma.php~ b/src/Mmi/Bundle/EnigmaBundle/Entity/Enigma.php~ new file mode 100644 index 0000000..a8ce667 --- /dev/null +++ b/src/Mmi/Bundle/EnigmaBundle/Entity/Enigma.php~ @@ -0,0 +1,127 @@ +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; + } +} diff --git a/src/Mmi/Bundle/EnigmaBundle/Entity/Team.php~ b/src/Mmi/Bundle/EnigmaBundle/Entity/Team.php~ new file mode 100644 index 0000000..e2d0d0a --- /dev/null +++ b/src/Mmi/Bundle/EnigmaBundle/Entity/Team.php~ @@ -0,0 +1,96 @@ +id; + } + + /** + * Set username + * + * @param string $username + * + * @return Team + */ + public function setUsername($username) + { + $this->username = $username; + + return $this; + } + + /** + * Get username + * + * @return string + */ + public function getUsername() + { + return $this->username; + } + + /** + * Set password + * + * @param string $password + * + * @return Team + */ + public function setPassword($password) + { + $this->password = $password; + + return $this; + } + + /** + * Get password + * + * @return string + */ + public function getPassword() + { + return $this->password; + } +} diff --git a/src/Mmi/Bundle/EnigmaBundle/Entity/Timer.php~ b/src/Mmi/Bundle/EnigmaBundle/Entity/Timer.php~ new file mode 100644 index 0000000..5a86b78 --- /dev/null +++ b/src/Mmi/Bundle/EnigmaBundle/Entity/Timer.php~ @@ -0,0 +1,125 @@ +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; + } +}