1
0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
dtux__serveur-vote-lalis/include/Condorcet/Documentation/Election Class/public Election--addCandidatesFromJson.md

969 B

public Election::addCandidatesFromJson

Description

public Election->addCandidatesFromJson ( string $input ): array

Import candidate from a JSON source.

input: string

JSON string input.

Return value:

(array) List of newly registered candidate object.

Throws:

  • CondorcetPHP\Condorcet\Throwable\CandidateExistsException


Examples and explanation