public function getContentType() { if ($this->contentType == null and $this->filePath != null) { $this->contentType = APIClient::getMimeType($this->filePath); } return $this->contentType; }