Total Complexity | 5 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
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 | 6 | public function __construct(false|UploadedFileInterface $value, Ruleable $element, int|string $thresholdSize, ?string $message = null) |
|
19 | { |
||
20 | 6 | $this->value = $value; |
|
21 | 6 | $this->element = $element; |
|
22 | 6 | $this->thresholdSize = $thresholdSize; |
|
23 | 6 | $this->message = $message; |
|
24 | } |
||
25 | |||
26 | 6 | public function check(): bool |
|
45 | } |
||
46 | } |
||
47 |