24 lines
691 B
PHP
24 lines
691 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\AlbumSources;
|
||
|
|
||
|
use App\Storage;
|
||
|
|
||
|
interface IAnalysisQueueSource
|
||
|
{
|
||
|
/**
|
||
|
* @param Storage $configuration
|
||
|
* @return mixed
|
||
|
*/
|
||
|
function setConfiguration(Storage $configuration);
|
||
|
|
||
|
/**
|
||
|
* Uploads a new file to the analysis queue specified by queue token.
|
||
|
*
|
||
|
* @param string $sourceFilePath Path to the file to upload to the analysis queue
|
||
|
* @param string $queueToken Queue token to hold the photo
|
||
|
* @param string $overrideFilename Use a specific filename, or false to set a specific name
|
||
|
* @return string Path to the file
|
||
|
*/
|
||
|
function uploadToAnalysisQueue($sourceFilePath, $queueToken, $overrideFilename = null);
|
||
|
}
|