# billingo/4.2.9/src/Validation/DocumentBlock/DocumentBlockQueryValidator.php

Billingo Official for WooCommerce, version 4.2.9. 20 lines.

- Page: https://pluginprobe.com/plugins/billingo/4.2.9/code/src/Validation/DocumentBlock/DocumentBlockQueryValidator.php
- Raw: https://pluginprobe.com/plugins/billingo/4.2.9/raw/src/Validation/DocumentBlock/DocumentBlockQueryValidator.php
- Modified: 2025-05-26T04:53:08+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/4.2.9/code/src/Validation/DocumentBlock/DocumentBlockQueryValidator.php#L10-L20`.

```php
<?php

namespace App\Billingo\Validation\DocumentBlock;

use App\Billingo\Enums\DocumentBlockTypeEnum;
use App\Billingo\Validation\Validator;

class DocumentBlockQueryValidator extends Validator
{

    protected function rules(): array
    {
        return [
            'page' => ['integer'],
            'per_page' => ['integer'],
            'type' => [['in', getEnumValues(DocumentBlockTypeEnum::class)]],
        ];
    }
}

```
