<?php

namespace App\Exports\RoadPatrol;

use Maatwebsite\Excel\Concerns\WithMultipleSheets;

class AllSheets implements WithMultipleSheets
{
    public function __construct($fromDate = null, $toDate = null, $province = null)
    {
        $this->fromDate = $fromDate ?? null;
        $this->toDate = $toDate ?? null;
        $this->province = $province ?? null;
    }
    public function sheets(): array
    {
        return [
            0 => new RoadPatrol($this->fromDate, $this->toDate, $this->province),
        ];
    }
}
