From 19b10dc6d4d317cbd04e61164478a05b9df67360 Mon Sep 17 00:00:00 2001 From: Julien Boudry Date: Tue, 11 Jul 2023 21:06:38 +0000 Subject: [PATCH] Add #[PublicAPI] attribute to maxParseIteration & maxVoteNumber --- .../Election Class/public Election--__construct.md | 2 +- .../Election Class/public Election--addConstraint.md | 2 +- .../Election Class/public Election--allowsVoteWeight.md | 2 +- .../Election Class/public Election--clearConstraints.md | 2 +- .../Election Class/public Election--getChecksum.md | 2 +- .../Election Class/public Election--getConstraints.md | 2 +- .../Election Class/public Election--getGlobalTimer.md | 2 +- .../Election Class/public Election--getImplicitRankingRule.md | 2 +- .../Election Class/public Election--getLastTimer.md | 2 +- .../Election Class/public Election--getNumberOfSeats.md | 2 +- Docs/ApiReferences/Election Class/public Election--getState.md | 2 +- .../Election Class/public Election--getTimerManager.md | 2 +- .../Election Class/public Election--isVoteWeightAllowed.md | 2 +- .../public Election--removeExternalDataHandler.md | 2 +- .../Election Class/public Election--setExternalDataHandler.md | 2 +- .../Election Class/public Election--setImplicitRanking.md | 2 +- .../Election Class/public Election--setNumberOfSeats.md | 2 +- .../Election Class/public Election--setStateToVote.md | 2 +- ...blic Election--testIfVoteIsValidUnderElectionConstraints.md | 2 +- .../public static Election--setMaxParseIteration.md | 2 +- .../Election Class/public static Election--setMaxVoteNumber.md | 2 +- Docs/ApiReferences/README.md | 3 +++ src/Election.php | 3 +++ 23 files changed, 27 insertions(+), 21 deletions(-) diff --git a/Docs/ApiReferences/Election Class/public Election--__construct.md b/Docs/ApiReferences/Election Class/public Election--__construct.md index 5404275f..466a2a7a 100644 --- a/Docs/ApiReferences/Election Class/public Election--__construct.md +++ b/Docs/ApiReferences/Election Class/public Election--__construct.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public Election--addConstraint.md b/Docs/ApiReferences/Election Class/public Election--addConstraint.md index 794fa15b..4ada07f7 100644 --- a/Docs/ApiReferences/Election Class/public Election--addConstraint.md +++ b/Docs/ApiReferences/Election Class/public Election--addConstraint.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public Election--allowsVoteWeight.md b/Docs/ApiReferences/Election Class/public Election--allowsVoteWeight.md index 99e23fb4..7d955504 100644 --- a/Docs/ApiReferences/Election Class/public Election--allowsVoteWeight.md +++ b/Docs/ApiReferences/Election Class/public Election--allowsVoteWeight.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public Election--clearConstraints.md b/Docs/ApiReferences/Election Class/public Election--clearConstraints.md index f3350539..1a77f336 100644 --- a/Docs/ApiReferences/Election Class/public Election--clearConstraints.md +++ b/Docs/ApiReferences/Election Class/public Election--clearConstraints.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public Election--getChecksum.md b/Docs/ApiReferences/Election Class/public Election--getChecksum.md index d4d5a11c..8b565652 100644 --- a/Docs/ApiReferences/Election Class/public Election--getChecksum.md +++ b/Docs/ApiReferences/Election Class/public Election--getChecksum.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public Election--getConstraints.md b/Docs/ApiReferences/Election Class/public Election--getConstraints.md index 5494bedd..e6afd1fc 100644 --- a/Docs/ApiReferences/Election Class/public Election--getConstraints.md +++ b/Docs/ApiReferences/Election Class/public Election--getConstraints.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public Election--getGlobalTimer.md b/Docs/ApiReferences/Election Class/public Election--getGlobalTimer.md index 148c9107..cb282ca5 100644 --- a/Docs/ApiReferences/Election Class/public Election--getGlobalTimer.md +++ b/Docs/ApiReferences/Election Class/public Election--getGlobalTimer.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public Election--getImplicitRankingRule.md b/Docs/ApiReferences/Election Class/public Election--getImplicitRankingRule.md index b99acc0c..ac22434b 100644 --- a/Docs/ApiReferences/Election Class/public Election--getImplicitRankingRule.md +++ b/Docs/ApiReferences/Election Class/public Election--getImplicitRankingRule.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public Election--getLastTimer.md b/Docs/ApiReferences/Election Class/public Election--getLastTimer.md index ff9701a2..d2f7c2c8 100644 --- a/Docs/ApiReferences/Election Class/public Election--getLastTimer.md +++ b/Docs/ApiReferences/Election Class/public Election--getLastTimer.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public Election--getNumberOfSeats.md b/Docs/ApiReferences/Election Class/public Election--getNumberOfSeats.md index 12b2547c..e1843ce1 100644 --- a/Docs/ApiReferences/Election Class/public Election--getNumberOfSeats.md +++ b/Docs/ApiReferences/Election Class/public Election--getNumberOfSeats.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public Election--getState.md b/Docs/ApiReferences/Election Class/public Election--getState.md index 834671fb..04e64b45 100644 --- a/Docs/ApiReferences/Election Class/public Election--getState.md +++ b/Docs/ApiReferences/Election Class/public Election--getState.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public Election--getTimerManager.md b/Docs/ApiReferences/Election Class/public Election--getTimerManager.md index 2590d6af..12dfbc93 100644 --- a/Docs/ApiReferences/Election Class/public Election--getTimerManager.md +++ b/Docs/ApiReferences/Election Class/public Election--getTimerManager.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public Election--isVoteWeightAllowed.md b/Docs/ApiReferences/Election Class/public Election--isVoteWeightAllowed.md index 74d2bd23..ab035630 100644 --- a/Docs/ApiReferences/Election Class/public Election--isVoteWeightAllowed.md +++ b/Docs/ApiReferences/Election Class/public Election--isVoteWeightAllowed.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public Election--removeExternalDataHandler.md b/Docs/ApiReferences/Election Class/public Election--removeExternalDataHandler.md index 4b2a76a2..242d4c02 100644 --- a/Docs/ApiReferences/Election Class/public Election--removeExternalDataHandler.md +++ b/Docs/ApiReferences/Election Class/public Election--removeExternalDataHandler.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public Election--setExternalDataHandler.md b/Docs/ApiReferences/Election Class/public Election--setExternalDataHandler.md index 5f15c5cd..9e51395a 100644 --- a/Docs/ApiReferences/Election Class/public Election--setExternalDataHandler.md +++ b/Docs/ApiReferences/Election Class/public Election--setExternalDataHandler.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public Election--setImplicitRanking.md b/Docs/ApiReferences/Election Class/public Election--setImplicitRanking.md index b479ec23..5ca6f00f 100644 --- a/Docs/ApiReferences/Election Class/public Election--setImplicitRanking.md +++ b/Docs/ApiReferences/Election Class/public Election--setImplicitRanking.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public Election--setNumberOfSeats.md b/Docs/ApiReferences/Election Class/public Election--setNumberOfSeats.md index 069068f3..6b318ae0 100644 --- a/Docs/ApiReferences/Election Class/public Election--setNumberOfSeats.md +++ b/Docs/ApiReferences/Election Class/public Election--setNumberOfSeats.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public Election--setStateToVote.md b/Docs/ApiReferences/Election Class/public Election--setStateToVote.md index e2658da7..2693b7ad 100644 --- a/Docs/ApiReferences/Election Class/public Election--setStateToVote.md +++ b/Docs/ApiReferences/Election Class/public Election--setStateToVote.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public Election--testIfVoteIsValidUnderElectionConstraints.md b/Docs/ApiReferences/Election Class/public Election--testIfVoteIsValidUnderElectionConstraints.md index a49cb14e..3d18ad8a 100644 --- a/Docs/ApiReferences/Election Class/public Election--testIfVoteIsValidUnderElectionConstraints.md +++ b/Docs/ApiReferences/Election Class/public Election--testIfVoteIsValidUnderElectionConstraints.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public static Election--setMaxParseIteration.md b/Docs/ApiReferences/Election Class/public static Election--setMaxParseIteration.md index bf412e64..9f104cfa 100644 --- a/Docs/ApiReferences/Election Class/public static Election--setMaxParseIteration.md +++ b/Docs/ApiReferences/Election Class/public static Election--setMaxParseIteration.md @@ -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 diff --git a/Docs/ApiReferences/Election Class/public static Election--setMaxVoteNumber.md b/Docs/ApiReferences/Election Class/public static Election--setMaxVoteNumber.md index cc6b0ba0..32080c8c 100644 --- a/Docs/ApiReferences/Election Class/public static Election--setMaxVoteNumber.md +++ b/Docs/ApiReferences/Election Class/public static Election--setMaxVoteNumber.md @@ -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 diff --git a/Docs/ApiReferences/README.md b/Docs/ApiReferences/README.md index f92d2faa..1f690ff9 100644 --- a/Docs/ApiReferences/README.md +++ b/Docs/ApiReferences/README.md @@ -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) diff --git a/src/Election.php b/src/Election.php index 5b570827..8f37953b 100644 --- a/src/Election.php +++ b/src/Election.php @@ -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;