protected function prepareVoteInput (&$vote, $tag = null) : void
    {
        if (!($vote instanceof Vote)) :
            $vote = new Vote ($vote, $tag);
        endif;

        // Check array format && Make checkVoteCandidate
        if ( !$this->checkVoteCandidate($vote) ) :
            throw new CondorcetException(5);
        endif;
    }
protected function prepareVoteInput (&$vote, $tag = null) : void
    {
        if (!($vote instanceof Vote)) :
            $vote = new Vote ($vote, $tag);
        endif;

        // Check array format && Make checkVoteCandidate
        if ( !$this->checkVoteCandidate($vote) ) :
            throw new CondorcetException(5);
        endif;
    }
protected function prepareVoteInput ( & $ vote , $ tag = null ) : void { if ( ! ( $ vote instanceof Vote ) ) : $ vote = new Vote ( $ vote , $ tag ) ; endif ; // Check array format && Make checkVoteCandidate if ( ! $ this -> checkVoteCandidate ( $ vote ) ) : throw new CondorcetException ( 5 ) ; endif ; }
Return the well formated vote to use.
Return the well formated vote to use .