Sindbad~EG File Manager

Current Path : /var/www/html/edd.sumar.com.py/vendor/maatwebsite/excel/src/Exceptions/
Upload File :
Current File : /var/www/html/edd.sumar.com.py/vendor/maatwebsite/excel/src/Exceptions/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();
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists