_isSecure; } public function setIsSecure($bool) { $this->_isSecure = $bool; } public function getFileType() { $type = parent::getFileType(); if ($this->getIsSecure()) { $fileInfo = new finfo(FILEINFO_MIME_TYPE); return $fileInfo->file($this->getLocalName()); } else { return $type; } } } ?>