| 1 | <?php |
||
| 8 | class NotValid extends Error |
||
| 9 | { |
||
| 10 | const ERROR_CODE = 'NOT_VALID'; |
||
| 11 | |||
| 12 | /** @var string */ |
||
| 13 | protected $message = 'Value not valid for %column% (Caused by: %previous%)'; |
||
| 14 | |||
| 15 | /** @var Error */ |
||
| 16 | protected $previous; |
||
| 17 | |||
| 18 | 2 | public function __construct(Column $column, Error $previous) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @return Error |
||
| 29 | */ |
||
| 30 | 1 | public function getPrevious() |
|
| 34 | } |
||
| 35 |