| 1 | <?php |
||
| 13 | class TruncateTable |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var DatabaseService |
||
| 17 | */ |
||
| 18 | protected $databaseService; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * TruncateTable constructor. |
||
| 22 | * |
||
| 23 | * @param DatabaseService $databaseService |
||
| 24 | */ |
||
| 25 | 4 | public function __construct(DatabaseService $databaseService) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @return void |
||
| 32 | */ |
||
| 33 | 1 | public static function enable() |
|
| 37 | |||
| 38 | /** |
||
| 39 | * To truncate a table from the importr you |
||
| 40 | * have to use the "truncate: " configuration. |
||
| 41 | * If you pass a string, then the string is |
||
| 42 | * interpreted as a table name. If you pass |
||
| 43 | * an array, every element is used as a table |
||
| 44 | * name. |
||
| 45 | * |
||
| 46 | * @param Configuration $processor |
||
| 47 | * @param array $configuration |
||
| 48 | */ |
||
| 49 | 3 | public function execute(Configuration $processor, array $configuration) |
|
| 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.