| Total Complexity | 5 |
| Total Lines | 38 |
| 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( |
|
| 19 | false|UploadedFileInterface $value, |
||
| 20 | Ruleable $element, |
||
| 21 | int|string $thresholdSize, |
||
| 22 | ?string $message = null |
||
| 23 | ) { |
||
| 24 | 6 | $this->value = $value; |
|
| 25 | 6 | $this->element = $element; |
|
| 26 | 6 | $this->thresholdSize = $thresholdSize; |
|
| 27 | 6 | $this->message = $message; |
|
| 28 | } |
||
| 29 | |||
| 30 | 6 | public function check(): bool |
|
| 49 | } |
||
| 50 | } |
||
| 51 |