| 1 | <?php |
||
| 16 | class RenameFile |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var FileService |
||
| 20 | */ |
||
| 21 | protected $fileService; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * RenameFile constructor. |
||
| 25 | * |
||
| 26 | * @param FileService $fileService |
||
| 27 | */ |
||
| 28 | 2 | public function __construct(FileService $fileService) |
|
| 32 | |||
| 33 | 1 | public static function enable() |
|
| 37 | |||
| 38 | /** |
||
| 39 | * To rename a file from the importr you |
||
| 40 | * have to use the "rename: 1" statement in |
||
| 41 | * your configuration. The file will be |
||
| 42 | * prefixed with the current (human readable) |
||
| 43 | * timestamp. |
||
| 44 | * |
||
| 45 | * Caution: after this method, the file is moved |
||
| 46 | * you should only use this in the before |
||
| 47 | * configuration if you are fully aware of it! |
||
| 48 | * |
||
| 49 | * @param ManagerInterface $manager |
||
| 50 | * @param Import $import |
||
| 51 | */ |
||
| 52 | 1 | public function execute(ManagerInterface $manager, Import $import) |
|
| 63 | } |
||
| 64 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.