This repository has been archived on 2025-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
szurubooru/src/Api/ApiFileOutput.php
2014-05-13 14:00:25 +02:00

19 lines
404 B
PHP

<?php
/**
* Used for serializing files output from jobs
*/
class ApiFileOutput
{
public $fileContent;
public $fileName;
public $lastModified;
public $mimeType;
public function __construct($filePath, $fileName)
{
$this->fileContent = file_get_contents($filePath);
$this->fileName = $fileName;
$this->lastModified = filemtime($filePath);
$this->mimeType = mime_content_type($filePath);
}
}