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