<commit_before># Aura.Payload

You use a _Payload_ as a data transfer object to send domain-layer results to
your user-interface layer, along with meta-data indicating the meaning of the
domain results.

## Getting Started

Instantiating a _Payload_ object is straighforward:

```php
<?php
$payload = new Payload();
?>
```

You can then set the payload status and domain output, along with error codes,
error messages, the input as received by the domain layer, and any extras you
like.

## Methods

Use these methods in your domain layer to modify the _Payload_. (All `set*()`
methods return the _Payload_ object itself, so you can chain the methods
fluently.)

- `setStatus()`: Sets the payload status in terms of the domain layer.

- `setInput()`: Sets the input as received by the domain layer.

- `setOutput()`: Sets the output produced by the domain layer.

- `setCode()`: Sets an error or status code reported by the domain layer.<commit_msg>Add use statement with FQNS<commit_after># Aura.Payload

You use a _Payload_ as a data transfer object to send domain-layer results to
your user-interface layer, along with meta-data indicating the meaning of the
domain results.

## Getting Started

Instantiating a _Payload_ object is straighforward:

```php
<?php
use Aura\Payload\Payload;

$payload = new Payload();
?>
```

You can then set the payload status and domain output, along with error codes,
error messages, the input as received by the domain layer, and any extras you
like.

## Methods

Use these methods in your domain layer to modify the _Payload_. (All `set*()`
methods return the _Payload_ object itself, so you can chain the methods
fluently.)

- `setStatus()`: Sets the payload status in terms of the domain layer.

- `setInput()`: Sets the input as received by the domain layer.

- `setOutput()`: Sets the output produced by the domain layer.

- `setCode()`: Sets an error or status code reported by the domain layer.
{'fraction_non_alphanumeric': 0.07684373388344508, 'fraction_numerical': 0.0, 'mean_word_length': 4.388888888888889, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '564615', 'n_tokens_mistral': 538, 'n_tokens_neox': 517, 'n_words': 285}