PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 1.2.4
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v1.2.4
6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 All 196 releases
fluentform / app / Services / csv / src / Exception / InvalidRowException.php

InvalidRowException.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 1.2.4, at app/Services/csv/src/Exception/InvalidRowException.php

72 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * This file is part of the League.csv library
4 *
5 * @license http://opensource.org/licenses/MIT
6 * @link https://github.com/thephpleague/csv/
7 * @version 8.2.2
8 * @package League.csv
9 *
10 * For the full copyright and license information, please view the LICENSE
11 * file that was distributed with this source code.
12 */
13 namespace League\Csv\Exception;
14
15 use InvalidArgumentException;
16
17 /**
18 * Thrown when a data is not validated prior to insertion
19 *
20 * @package League.csv
21 * @since 7.0.0
22 *
23 */
24 class InvalidRowException extends InvalidArgumentException
25 {
26 /**
27 * Validator which did not validated the data
28 * @var string
29 */
30 private $name;
31
32 /**
33 * Validator Data which caused the error
34 * @var array
35 */
36 private $data;
37
38 /**
39 * New Instance
40 *
41 * @param string $name validator name
42 * @param array $data invalid data
43 * @param string $message exception message
44 */
45 public function __construct($name, array $data = [], $message = '')
46 {
47 parent::__construct($message);
48 $this->name = $name;
49 $this->data = $data;
50 }
51
52 /**
53 * return the validator name
54 *
55 * @return string
56 */
57 public function getName()
58 {
59 return $this->name;
60 }
61
62 /**
63 * return the invalid data submitted
64 *
65 * @return array
66 */
67 public function getData()
68 {
69 return $this->data;
70 }
71 }
72