ÿØÿà JFIF ÿá Exif MM * ÿÛ C
Server IP : 199.250.214.225 / Your IP : 18.216.190.57 Web Server : Apache System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : nicngo5 ( 1001) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /home/nicngo5/funds.upgrade.nicn.gov.ng/funds-upgraded/vendor/maatwebsite/excel/src/Validators/ |
Upload File : |
<?php namespace Maatwebsite\Excel\Validators; use Illuminate\Contracts\Support\Arrayable; use JsonSerializable; class Failure implements Arrayable, JsonSerializable { /** * @var int */ protected $row; /** * @var string */ protected $attribute; /** * @var array */ protected $errors; /** * @var array */ private $values; /** * @param int $row * @param string $attribute * @param array $errors * @param array $values */ public function __construct(int $row, string $attribute, array $errors, array $values = []) { $this->row = $row; $this->attribute = $attribute; $this->errors = $errors; $this->values = $values; } /** * @return int */ public function row(): int { return $this->row; } /** * @return string */ public function attribute(): string { return $this->attribute; } /** * @return array */ public function errors(): array { return $this->errors; } /** * @return array */ public function values(): array { return $this->values; } /** * @return array */ public function toArray() { return collect($this->errors)->map(function ($message) { return __('There was an error on row :row. :message', ['row' => $this->row, 'message' => $message]); })->all(); } /** * @return array */ public function jsonSerialize() { return [ 'row' => $this->row(), 'attribute' => $this->attribute(), 'errors' => $this->errors(), 'values' => $this->values(), ]; } }