| 1 | <?php |
||
| 14 | class RenameFile |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var FileService |
||
| 18 | */ |
||
| 19 | protected $fileService; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * RenameFile constructor. |
||
| 23 | * @param FileService $fileService |
||
| 24 | */ |
||
| 25 | 2 | public function __construct(FileService $fileService) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @return void |
||
| 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 | * @return void |
||
| 52 | */ |
||
| 53 | 1 | public function execute(ManagerInterface $manager, Import $import) |
|
| 64 | } |
||
| 65 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.