# billingo/trunk/src/Error/BillingoError.php

Billingo Official for WooCommerce, version trunk. 43 lines.

- Page: https://pluginprobe.com/plugins/billingo/trunk/code/src/Error/BillingoError.php
- Raw: https://pluginprobe.com/plugins/billingo/trunk/raw/src/Error/BillingoError.php
- Modified: 2026-08-12T06:22:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/billingo/trunk/code/src/Error/BillingoError.php#L10-L20`.

```php
<?php

namespace App\Billingo\Error;

use App\Billingo\Enums\BillingoErrorEnum;
use JsonSerializable;

class BillingoError implements JsonSerializable
{

    public function __construct(private BillingoErrorEnum $type, private ?array $values)
    {
    }

    public function jsonSerialize(): array
    {
        return [
            'type' => $this->type->value,
            'values' => $this->values,
        ];
    }

    public function getType(): BillingoErrorEnum
    {
        return $this->type;
    }

    public function setType(BillingoErrorEnum $type): void
    {
        $this->type = $type;
    }

    public function getValues(): ?array
    {
        return $this->values;
    }

    public function setValues(?array $values): void
    {
        $this->values = $values;
    }
}

```
