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