ids = $ids; $this->type = $type; } public function sheets(): array { return [ Str::plural($this->type) => new Base($this->ids, $this->type), $this->type . '_items' => new DocumentItems($this->ids, $this->type), $this->type . '_item_taxes' => new DocumentItemTaxes($this->ids, $this->type), $this->type . '_histories' => new DocumentHistories($this->ids, $this->type), $this->type . '_totals' => new DocumentTotals($this->ids, $this->type), $this->type . '_transactions' => new DocumentTransactions($this->ids, $this->type), ]; } }