public function setAllowedExtensions($allowed_extensions) { $this->config['allowed_extensions'] = $allowed_extensions; return $this; }