<?php

namespace App\Exports\V2\SafetyAndPrivacy\SafetyAndPrivacyTable;

use App\Exports\V2\SafetyAndPrivacy\SafetyAndPrivacyTable\Provinces;
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
use App\Exports\V2\SafetyAndPrivacy\SafetyAndPrivacyTable\Cities;

class AllSheets implements WithMultipleSheets
{
    public function __construct($from_date = null, $date_to = null)
    {
        $this->from_date = $from_date ?? null;
        $this->date_to = $date_to ?? null;
    }

    public function sheets(): array
    {
        return [
            0 => new Provinces($this->from_date, $this->date_to),
            1 => new Cities($this->from_date, $this->date_to)
        ];
    }
}
