3 declare(strict_types=1);
34 public function min(
int $size_in_bytes):
int 36 return min($this->default_upload_size_limit, $size_in_bytes);
39 public function max(
int $size_in_bytes):
int 41 return max($this->default_upload_size_limit, $size_in_bytes);
46 if ($size_in_bytes > $this->default_upload_size_limit) {
47 throw new \InvalidArgumentException(
"File size exceeds $this->default_upload_size_limit bytest.");