Skip to content

Latest commit

 

History

History
27 lines (14 loc) · 798 Bytes

public static Election--setMaxVoteNumber.md

File metadata and controls

27 lines (14 loc) · 798 Bytes

public static Election::setMaxVoteNumber

Read it at the source

Description

public static Election::setMaxVoteNumber ( ?int $maxVotesNumber ): ?int

Add a limitation on Election::addVote and related methods. You can't add new vote y the number of registered vote is equall ou superior of this limit.

maxVotesNumber: ?int

Null will deactivate this functionality. An integer will fix the limit.

Return value:

(?int) (int or null) The new limit.


Related method(s)