ok

Mini Shell

Direktori : /home2/selectio/public_html/limpiar.in.net/vendor/maatwebsite/excel/src/Concerns/
Upload File :
Current File : //home2/selectio/public_html/limpiar.in.net/vendor/maatwebsite/excel/src/Concerns/SkipsFailures.php

<?php

namespace Maatwebsite\Excel\Concerns;

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

trait SkipsFailures
{
    /**
     * @var Failure[]
     */
    protected $failures = [];

    /**
     * @param  Failure  ...$failures
     */
    public function onFailure(Failure ...$failures)
    {
        $this->failures = array_merge($this->failures, $failures);
    }

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

Zerion Mini Shell 1.0