| 1 | <?php |
||
| 17 | class ConstraintException extends UploadException |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var ConstraintInterface |
||
| 21 | */ |
||
| 22 | protected $constraint; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var UploadedFile |
||
| 26 | */ |
||
| 27 | protected $uploadedFile; |
||
| 28 | |||
| 29 | public function __construct(ConstraintInterface $constraint, UploadedFile $uploadedFile) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Gets the constraint |
||
| 38 | * |
||
| 39 | * @return ConstraintInterface |
||
| 40 | */ |
||
| 41 | public function getConstraint() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Gets the uploaded file |
||
| 48 | * |
||
| 49 | * @return UploadedFile |
||
| 50 | */ |
||
| 51 | public function getUploadedFile() |
||
| 55 | } |