PluginProbe
Billingo Official for WooCommerce / trunk
Billingo Official for WooCommerce vtrunk
4.3.3 4.3.2 trunk 0.0.2 1.0.0 2.0 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 All 82 releases
billingo / src / Factories / DocumentBlockFactory.php

DocumentBlockFactory.php in Billingo Official for WooCommerce trunk, at src/Factories/DocumentBlockFactory.php

22 lines 615 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace App\Billingo\Factories;
4
5 use App\Billingo\Enums\DocumentBlockTypeEnum;
6
7 class DocumentBlockFactory extends BaseFactory
8 {
9
10 public function definition(): array
11 {
12 return [
13 'id' => $this->faker->numberBetween(1,1000),
14 'name' =>$this->faker->regexify('[A-Za-z0-9 ]{10}'),
15 'prefix' => $this->faker->word(),
16 'custom_field1' => $this->faker->optional()->word(),
17 'custom_field2' => $this->faker->optional()->word(),
18 'type' => $this->faker->randomElement(getEnumValues(DocumentBlockTypeEnum::class)),
19 ];
20 }
21 }
22