| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | #[\Override] |
||
| 17 | public function init() |
||
| 18 | { |
||
| 19 | $keyName = $this->doesKeyExist(array( |
||
| 20 | 'table' => $this->table->getName(), |
||
| 21 | 'schema' => $this->table->getSchema()->getName(), |
||
| 22 | 'columns' => $this->columns) |
||
| 23 | ); |
||
| 24 | if($keyName === false) |
||
| 25 | { |
||
| 26 | $this->new = true; |
||
| 27 | $this->name = $this->table->getName() . '_' . implode('_', $this->columns) . '_' . $this->getNamePostfix(); |
||
| 28 | } |
||
| 29 | else |
||
| 30 | { |
||
| 31 | $this->name = $keyName; |
||
| 32 | } |
||
| 70 |