getFallback

Learn how to get the fallback value for the evaluation.

This method provides the fallback value used when the query cannot be evaluated.

Signature

This method has the following signature:

public function getFallback(): mixed

This method returns the fallback value, or null by default.

Example

Here is a basic example of how to use this method:

<?phpuse Croct\Plug\EvaluationOptions;
$options = EvaluationOptions::defaults()->withFallback(false);$fallback = $options->getFallback();