final class Score implements Question

Methods

__construct(string|array $instructions, array $levels)

Create a new ordinal question whose answer is the expected position on the given levels.

array
toArray()

Get the question as a provider-neutral array.

Details

at line 20
__construct(string|array $instructions, array $levels)

Create a new ordinal question whose answer is the expected position on the given levels.

Parameters

string|array $instructions
array $levels

level descriptions ordered from lowest to highest

Exceptions

InvalidArgumentException

at line 32
array toArray()

Get the question as a provider-neutral array.

Return Value

array