# billingo/4.2.9/src/Factories/DocumentBlockFactory.php

Billingo Official for WooCommerce, version 4.2.9. 22 lines.

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

```php
<?php

namespace App\Billingo\Factories;

use App\Billingo\Enums\DocumentBlockTypeEnum;

class DocumentBlockFactory extends BaseFactory
{

    public function definition(): array
    {
        return [
            'id' => $this->faker->numberBetween(1,1000),
            'name' =>$this->faker->regexify('[A-Za-z0-9 ]{10}'),
            'prefix' => $this->faker->word(),
            'custom_field1' => $this->faker->optional()->word(),
            'custom_field2' => $this->faker->optional()->word(),
            'type' => $this->faker->randomElement(getEnumValues(DocumentBlockTypeEnum::class)),
        ];
    }
}

```
