![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/medad.corals.io/vendor/maatwebsite/excel/src/ |
<?php namespace Maatwebsite\Excel; use Maatwebsite\Excel\Concerns\Importable; use Maatwebsite\Excel\Concerns\WithLimit; use Maatwebsite\Excel\Concerns\WithMapping; use Maatwebsite\Excel\Concerns\WithStartRow; use Maatwebsite\Excel\Imports\HeadingRowFormatter; class HeadingRowImport implements WithStartRow, WithLimit, WithMapping { use Importable; /** * @var int */ private $headingRow; /** * @param int $headingRow */ public function __construct(int $headingRow = 1) { $this->headingRow = $headingRow; } /** * @return int */ public function startRow(): int { return $this->headingRow; } /** * @return int */ public function limit(): int { return 1; } /** * @param mixed $row * @return array */ public function map($row): array { return HeadingRowFormatter::format($row); } }