Skip to content

public Election::addCandidatesFromJson

Read it at the source

Description

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

Import candidates from a JSON source.

Parameter

input: string

JSON string.

Return value

(array) List of newly registered candidate objects.

Throws:

  • CandidateExistsException


Tutorial

Released under the MIT License.