Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class MaxsizeCheck implements UploadCheckInterface |
||
12 | { |
||
13 | private UploadedFileInterface|false $value; |
||
14 | private Ruleable $element; |
||
15 | private int|string $thresholdSize; |
||
16 | private ?string $message; |
||
17 | |||
18 | public function __construct( |
||
19 | false|UploadedFileInterface $value, |
||
20 | Ruleable $element, |
||
21 | int|string $thresholdSize, |
||
22 | ?string $message = null |
||
23 | ) { |
||
24 | $this->value = $value; |
||
25 | $this->element = $element; |
||
26 | $this->thresholdSize = $thresholdSize; |
||
27 | $this->message = $message; |
||
28 | } |
||
29 | |||
30 | public function check(): bool |
||
49 | } |
||
50 | } |
||
51 |