<?php

namespace Database\Seeders;

use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class AnnualLeaveEntitlementSeeder extends Seeder
{
    private $employee_number;

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

    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $employee = $this->employee;

        DB::table('annual_leave_entitlements')->insert([
            'employee_number' => $employee->employee_number,
            'days' => 22
        ]);
        // }
    }
}
