| 1 | <?php |
||
| 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 = '') |
||
| 51 | |||
| 52 | /** |
||
| 53 | * return the validator name |
||
| 54 | * |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function getName() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * return the invalid data submitted |
||
| 64 | * |
||
| 65 | * @return array |
||
| 66 | */ |
||
| 67 | public function getData() |
||
| 71 | } |
||
| 72 |