/
PostProcessorInterface.php
37 lines (32 loc) · 1.08 KB
/
PostProcessorInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
namespace Concrete\Core\File\Import\Processor;
use Concrete\Core\Entity\File\Version;
use Concrete\Core\File\Import\ImportingFile;
use Concrete\Core\File\Import\ImportOptions;
interface PostProcessorInterface extends ProcessorInterface
{
/**
* Get the priority of this post-processor.
*
* @return int
*/
public function getPostProcessPriority();
/**
* Check if this post-processor should process an imported file.
*
* @param \Concrete\Core\File\Import\ImportingFile $file
* @param \Concrete\Core\Entity\File\Version $importedVersion
* @param ImportOptions $options
*
* @return bool
*/
public function shouldPostProcess(ImportingFile $file, ImportOptions $options, Version $importedVersion);
/**
* Post-process am imported file.
*
* @param \Concrete\Core\File\Import\ImportingFile $file
* @param \Concrete\Core\Entity\File\Version $importedVersion
* @param ImportOptions $options
*/
public function postProcess(ImportingFile $file, ImportOptions $options, Version $importedVersion);
}