[TASK] Re-work/simplify copyright header in PHP files - Part 3
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / Processing / ProcessorInterface.php
1 <?php
2 namespace TYPO3\CMS\Core\Resource\Processing;
3
4 /**
5 * This file is part of the TYPO3 CMS project.
6 *
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
10 *
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
13 *
14 * The TYPO3 project - inspiring people to share!
15 */
16
17 /**
18 * Interface for file processors. All classes capable of processing a file have to implement this interface.
19 */
20 interface ProcessorInterface {
21
22 /**
23 * Returns TRUE if this processor can process the given task.
24 *
25 * @param TaskInterface $task
26 * @return boolean
27 */
28 public function canProcessTask(TaskInterface $task);
29
30 /**
31 * Processes the given task and sets the processing result in the task object.
32 *
33 * @param TaskInterface $task
34 * @return void
35 */
36 public function processTask(TaskInterface $task);
37 }