multiple = $set; } protected function getMultiple():bool { return $this->multiple; } protected function setMaxUploads(int $maxUploads):void { $max = 20; $this->maxUploads = min($maxUploads, $max); } protected function getMaxUploads():int { return $this->maxUploads; } protected function setSubtype(string $subtype):void { $allowed = ['document', 'video', 'image', 'all']; if (!in_array($subtype, $allowed)) { error_log('Invalid subtype for '.$this->name.' image field: '.$subtype); return; } $this->subtype = $subtype; } protected function getSubtype():string { return $this->subtype; } }