Get Results

<Array|NULL> getResults()

Returns set of results objects if they're exist, where votes is the total number of votes per option. Otherwise, returns null.

Output

[{
    votes: 15,
    percentage: 75
}, {
    votes: 5,
    percentage: 25
}]

Last updated