1 | <?php |
||
8 | class TruncateTable extends AbstractFeature |
||
9 | { |
||
10 | /** |
||
11 | * @var DatabaseService |
||
12 | */ |
||
13 | protected $databaseService; |
||
14 | |||
15 | /** |
||
16 | * TruncateTable constructor. |
||
17 | * @param DatabaseService $databaseService |
||
18 | */ |
||
19 | 3 | public function __construct(DatabaseService $databaseService) |
|
23 | |||
24 | /** |
||
25 | * To truncate a table from the importr you |
||
26 | * have to use the "truncate: " configuration. |
||
27 | * If you pass a string, then the string is |
||
28 | * interpreted as a table name. If you pass |
||
29 | * an array, every element is used as a table |
||
30 | * name. |
||
31 | * |
||
32 | * @param ManagerInterface $manager |
||
33 | * @param Import $import |
||
34 | */ |
||
35 | 3 | public function execute(ManagerInterface $manager, Import $import) |
|
51 | } |
||
52 |