# billingo/4.2.9/src/Validation/Util/TaxNumberValidator.php

Billingo Official for WooCommerce, version 4.2.9. 19 lines.

- Page: https://pluginprobe.com/plugins/billingo/4.2.9/code/src/Validation/Util/TaxNumberValidator.php
- Raw: https://pluginprobe.com/plugins/billingo/4.2.9/raw/src/Validation/Util/TaxNumberValidator.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/Util/TaxNumberValidator.php#L10-L20`.

```php
<?php

namespace App\Billingo\Validation\Util;

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

class TaxNumberValidator extends Validator
{

    protected function rules(): array
    {
        return [
            'tax_number' => ['optional', ['regex', '/^[0-9]{8}-[1-5]-[0-9]{2}$/']],
            'result' => ['optional', ['in', getEnumValues(CheckTaxNumberMessageEnum::class)]],
        ];
    }
}

```
