# EvaluationOptions

Learn how to configure a query evaluation.

This immutable class configures a call to [`evaluate`](/reference/sdk/php/api/core/plug/evaluate).

Start from [`defaults`](/reference/sdk/php/api/options/evaluation-options/defaults) and chain the `with*` methods to build the options. Each method returns a new instance, leaving the original unchanged.

> **Looking for something specific?**
>
> Use the search bar at the top of the page or press `/` to quickly search through the documentation.

Use the summary below to quickly jump to a specific topic:

- [defaults](/reference/sdk/php/api/options/evaluation-options/defaults): Learn how to create the default evaluation options.
- [withAttributes](/reference/sdk/php/api/options/evaluation-options/with-attributes): Learn how to set the context attributes for the evaluation.
- [withAttribute](/reference/sdk/php/api/options/evaluation-options/with-attribute): Learn how to add a context attribute to the evaluation.
- [getAttributes](/reference/sdk/php/api/options/evaluation-options/get-attributes): Learn how to get the context attributes for the evaluation.
- [withFallback](/reference/sdk/php/api/options/evaluation-options/with-fallback): Learn how to set a fallback for the evaluation.
- [hasFallback](/reference/sdk/php/api/options/evaluation-options/has-fallback): Learn how to check whether a fallback was set.
- [getFallback](/reference/sdk/php/api/options/evaluation-options/get-fallback): Learn how to get the fallback value for the evaluation.
