# getAttributes

Learn how to get the context attributes for the evaluation.

This method provides the context attributes set for the evaluation.

## Signature

This method has the following signature:

```php
public function getAttributes(): array
```

This method returns the context attributes, or an empty array by default.

## Example

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

```php
<?php
use Croct\Plug\EvaluationOptions;

$options = EvaluationOptions::defaults()->withAttribute('plan', 'premium');
$attributes = $options->getAttributes();
```
