<?php

use Faker\Generator as Faker;

class MarhunFactory
{
    protected $faker;

    public function __construct(Faker $faker)
    {
        $this->faker = $faker;
    }

    public function create()
    {
        static $number = 1;

        return [
            'kodcaw' => 'KB2',
            'marhun' => 'R/L',
            't_gadai' => '2023-12-11',
            'norujukan' => ($number > 9) ? 'KB2231211-00' . $number : 'KB2231211-000' . $number ,
            'bil' => 1,
            'nota' => $number++,
            'karat' => '24.0K',
            'berat' => 10.17,
            'harga' => 295.11,
            'n_marhun' => 3000.09
        ];
    }

}