Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class ConstraintException extends UploadException |
||
9 | { |
||
10 | /** |
||
11 | * @var ConstraintInterface |
||
12 | */ |
||
13 | protected $constraint; |
||
14 | |||
15 | /** |
||
16 | * @var UploadedFile |
||
17 | */ |
||
18 | protected $uploadedFile; |
||
19 | |||
20 | public function __construct(ConstraintInterface $constraint, UploadedFile $uploadedFile) |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * Gets the constraint |
||
29 | * |
||
30 | * @return ConstraintInterface |
||
31 | */ |
||
32 | public function getConstraint(): ConstraintInterface |
||
33 | { |
||
34 | return $this->constraint; |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Gets the uploaded file |
||
39 | * |
||
40 | * @return UploadedFile |
||
41 | */ |
||
42 | public function getUploadedFile(): UploadedFile |
||
45 | } |
||
46 | } |
||
47 |