defaults

Learn how to create the default evaluation options.

This method creates the default options, with no attributes and no fallback.

Signature

This method has the following signature:

public static function defaults(): self

This method returns a new set of options with the default values.

Example

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

<?phpuse Croct\Plug\EvaluationOptions;
$options = EvaluationOptions::defaults();