public function setValueAttribute(?string $value): void 	{ 		switch ($this->attributes['type']) { 			case self::FILTER_TYPE_TEXTAREA: 				$this->attributes['value'] = $value;  				break;  			case self::FILTER_TYPE_SELECT: 				$this->attributes['value'] = $this->trimSelectValues($value);  				break;  			default: 				$this->attributes['value'] = $value ? preg_replace('/\s+/', ' ', $value) : null; 		} 	}