BooleanAnswer
class BooleanAnswer extends Answer
Methods
array
toArray()
Get the instance as an array.
__construct(float $probability)
Create a new boolean answer instance.
bool
isTrue(float $threshold = 0.5)
Determine if the probability meets the given threshold.
Details
at line 30
array
toArray()
Get the instance as an array.
in
Answer at line 20
array
jsonSerialize()
Get the JSON serializable representation of the instance.
at line 14
__construct(float $probability)
Create a new boolean answer instance.
at line 22
bool
isTrue(float $threshold = 0.5)
Determine if the probability meets the given threshold.