final class Boolean implements Question

Methods

__construct(string|array $instructions, array|null $criteria = null)

Create a new yes / no question whose answer is the probability of "true".

array
toArray()

Get the question as a provider-neutral array.

Details

at line 20
__construct(string|array $instructions, array|null $criteria = null)

Create a new yes / no question whose answer is the probability of "true".

Parameters

string|array $instructions
array|null $criteria

descriptions of what a yes and a no mean

Exceptions

InvalidArgumentException

at line 32
array toArray()

Get the question as a provider-neutral array.

Return Value

array