Total Complexity | 8 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
4 | class DatabaseModify { |
||
5 | private $adapter; |
||
6 | private $alterDb; |
||
7 | private $table; |
||
8 | |||
9 | public function __construct(DatabaseAdapter $adapter, $alterDb, $table) { |
||
10 | $this->adapter = $adapter; |
||
11 | $this->alterDb = $alterDb; |
||
12 | $this->table = $table; |
||
13 | } |
||
14 | |||
15 | public function addIndex($args) { |
||
16 | if (Database::EDIT_INDEX & $this->alterDb) $this->adapter->addIndex($this->table, $args); |
||
17 | } |
||
18 | |||
19 | public function optimizeColumns() { |
||
21 | } |
||
22 | |||
23 | public function getTryInsertAgain($tryagain) { |
||
27 |