| 1 | <?php |
||
| 15 | class TruncateTable |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var DatabaseService |
||
| 19 | */ |
||
| 20 | protected $databaseService; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * TruncateTable constructor. |
||
| 24 | * |
||
| 25 | * @param DatabaseService $databaseService |
||
| 26 | */ |
||
| 27 | 4 | public function __construct(DatabaseService $databaseService) |
|
| 31 | |||
| 32 | 1 | public static function enable() |
|
| 36 | |||
| 37 | /** |
||
| 38 | * To truncate a table from the importr you |
||
| 39 | * have to use the "truncate: " configuration. |
||
| 40 | * If you pass a string, then the string is |
||
| 41 | * interpreted as a table name. If you pass |
||
| 42 | * an array, every element is used as a table |
||
| 43 | * name. |
||
| 44 | * |
||
| 45 | * @param Configuration $processor |
||
| 46 | * @param array $configuration |
||
| 47 | */ |
||
| 48 | 3 | public function execute(Configuration $processor, array $configuration) |
|
| 62 | } |
||
| 63 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.