Skip to content

Commit

Permalink
Add #[PublicAPI] attribute to maxParseIteration & maxVoteNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-boudry authored Jul 11, 2023
1 parent 51b5f27 commit 19b10dc
Show file tree
Hide file tree
Showing 23 changed files with 27 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public Election::__construct

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L95)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L98)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public Election::addConstraint

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L304)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L307)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public Election::allowsVoteWeight

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L286)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L289)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public Election::clearConstraints

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L338)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L341)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public Election::getChecksum

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L210)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L213)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public Election::getConstraints

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L328)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L331)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public Election::getGlobalTimer

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L182)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L185)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public Election::getImplicitRankingRule

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L255)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L258)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public Election::getLastTimer

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L192)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L195)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public Election::getNumberOfSeats

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L372)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L375)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public Election::getState

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L440)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L443)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public Election::getTimerManager

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L201)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L204)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public Election::isVoteWeightAllowed

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L277)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L280)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public Election::removeExternalDataHandler

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L423)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L426)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public Election::setExternalDataHandler

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L406)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L409)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public Election::setImplicitRanking

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L264)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L267)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public Election::setNumberOfSeats

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L382)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L385)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public Election::setStateToVote

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L451)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L454)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public Election::testIfVoteIsValidUnderElectionConstraints

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L352)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L355)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public static Election::setMaxParseIteration

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L62)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L65)
### Description

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## public static Election::setMaxVoteNumber

> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L74)
> [Read it at the source](https://github.com/julien-boudry/Condorcet/blob/master/src/Election.php#L77)
### Description

Expand Down
3 changes: 3 additions & 0 deletions Docs/ApiReferences/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ _*: I try to update and complete the documentation. See also [the documentation

* `public const MAX_CANDIDATE_NAME_LENGTH: (integer)`

* `public static ?int $maxParseIteration`
* `public static ?int $maxVoteNumber`

* [public static Election::setMaxParseIteration (...)](/Docs/ApiReferences/Election%20Class/public%20static%20Election--setMaxParseIteration.md): `?int`
* [public static Election::setMaxVoteNumber (...)](/Docs/ApiReferences/Election%20Class/public%20static%20Election--setMaxVoteNumber.md): `?int`
* [public Election->__construct ()](/Docs/ApiReferences/Election%20Class/public%20Election--__construct.md)
Expand Down
3 changes: 3 additions & 0 deletions src/Election.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ class Election
#[PublicAPI]
public const MAX_CANDIDATE_NAME_LENGTH = 100; // Max length for candidate name string (UTF-8)

#[PublicAPI]
public static ?int $maxParseIteration = null;

#[PublicAPI]
public static ?int $maxVoteNumber = null;

protected static bool $checksumMode = false;
Expand Down

0 comments on commit 19b10dc

Please sign in to comment.