trait CanBePrecognitive (View source)

Methods

array
filterPrecognitiveRules(array $rules)

Filter the given array of rules into an array of rules that are included in precognitive headers.

bool
isAttemptingPrecognition()

Determine if the request is attempting to be precognitive.

bool
isPrecognitive()

Determine if the request is precognitive.

Details

array filterPrecognitiveRules(array $rules)

Filter the given array of rules into an array of rules that are included in precognitive headers.

Parameters

array $rules

Return Value

array

bool isAttemptingPrecognition()

Determine if the request is attempting to be precognitive.

Return Value

bool

bool isPrecognitive()

Determine if the request is precognitive.

Return Value

bool