Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2018-02-20 16:50:14 +01:00
parent ff47a21ac2
commit a442cc5ee7

View File

@ -89,9 +89,9 @@ class PollService {
* @param $name
* @param $choices
* @param $slots_hash
* @return bool
* @throws ConcurrentEditionException
* @throws ConcurrentVoteException
* @return bool
*/
public function updateVote($poll_id, $vote_id, $name, $choices, $slots_hash) {
$poll = $this->findById($poll_id);
@ -112,10 +112,10 @@ class PollService {
* @param $name
* @param $choices
* @param $slots_hash
* @return \stdClass
* @throws AlreadyExistsException
* @throws ConcurrentEditionException
* @throws ConcurrentVoteException
* @return \stdClass
*/
function addVote($poll_id, $name, $choices, $slots_hash) {
$poll = $this->findById($poll_id);