GoCardlessMandateFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A definition() 0 6 1
1
<?php
2
3
namespace GoCardlessPayment\Database\Factories;
4
5
use GoCardlessPayment\Models\GoCardlessMandate;
6
use Illuminate\Database\Eloquent\Factories\Factory;
7
8
/**
9
 * @extends Factory<GoCardlessMandate>
10
 */
11
class GoCardlessMandateFactory extends Factory
12
{
13
    protected $model = GoCardlessMandate::class;
14
15
    public function definition(): array
16
    {
17
        return [
18
            'id' => 'MD'.fake()->unique()->randomNumber(8),
19
            'customer_id' => 'CUS'.fake()->unique()->randomNumber(8),
20
            'status' => 'pending_submission',
21
        ];
22
    }
23
}
24