PollOption
in package
Class PollOption
Represents an answer option in a poll if supported.
Table of Contents
Properties
- $id : int
- $id : int
- $optionValue : string
- $optionValue : string
- $pollId : int
- $pollId : int
Methods
- __construct() : mixed
Properties
$id
public
int
$id
The unique identifier for the poll option.
$id
public
int
$id
$optionValue
public
string
$optionValue
The value or text of the poll option.
$optionValue
public
string
$optionValue
$pollId
public
int
$pollId
The identifier of the poll to which this option belongs.
$pollId
public
int
$pollId
Methods
__construct()
public
__construct(int $id, int $pollId, string $optionValue) : mixed
Parameters
- $id : int
- $pollId : int
- $optionValue : string