| 1 | <?php |
||
| 23 | class InvalidRowException extends InvalidArgumentException |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * Validator which did not validated the data |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | private $name; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Validator Data which caused the error |
||
| 34 | * |
||
| 35 | * @var string[] |
||
| 36 | */ |
||
| 37 | private $record; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * New Instance |
||
| 41 | * |
||
| 42 | * @param string $name validator name |
||
| 43 | * @param string[] $record invalid data |
||
| 44 | * @param string $message exception message |
||
| 45 | */ |
||
| 46 | public function __construct($name, array $record = [], $message = '') |
||
| 52 | |||
| 53 | /** |
||
| 54 | * return the validator name |
||
| 55 | * |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getName() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * return the invalid record |
||
| 65 | * |
||
| 66 | * @return string[] |
||
| 67 | */ |
||
| 68 | public function getData() |
||
| 72 | } |
||
| 73 |