Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/../vendor/markbaker/../paypal/../iyzico/./../doctrine/../webklex/../symfony/.././maatwebsite/excel/src/Exceptions/.
الملفات الموجودة في هذا الـ Path:
.
..
ConcernConflictException.php
LaravelExcelException.php
NoFilePathGivenException.php
NoFilenameGivenException.php
NoTypeDetectedException.php
RowSkippedException.php
SheetNotFoundException.php
UnreadableFileException.php

مشاهدة ملف: RowSkippedException.php

<?php

namespace Maatwebsite\Excel\Exceptions;

use Exception;
use Illuminate\Support\Collection;
use Maatwebsite\Excel\Validators\Failure;

class RowSkippedException extends Exception
{
    /**
     * @var Failure[]
     */
    private $failures;

    /**
     * @param  Failure  ...$failures
     */
    public function __construct(Failure ...$failures)
    {
        $this->failures = $failures;

        parent::__construct();
    }

    /**
     * @return Failure[]|Collection
     */
    public function failures(): Collection
    {
        return new Collection($this->failures);
    }

    /**
     * @return int[]
     */
    public function skippedRows(): array
    {
        return $this->failures()->map->row()->all();
    }
}