class PollAnswer

This object represents an answer of a user in a non-anonymous poll.

Methods

__construct(string $poll_id, User $user, int[] $option_ids)

No description

string
getPollId()

Unique poll identifier.

getUser()

The user, who changed the answer to the poll.

array
getOptionIds()

0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.

Details

at line 15
__construct(string $poll_id, User $user, int[] $option_ids)

No description

Parameters

string $poll_id
User $user
int[] $option_ids

at line 25
string getPollId()

Unique poll identifier.

Return Value

string

at line 33
User getUser()

The user, who changed the answer to the poll.

Return Value

User

at line 43
array getOptionIds()

0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.

Return Value

array