| Total Complexity | 6 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 13 | class AttachPartitionCompiler |
||
| 14 | { |
||
| 15 | 4 | public static function compile(Grammar $grammar, Blueprint $blueprint, Fluent $command): string |
|
| 16 | { |
||
| 17 | 4 | return sprintf( |
|
| 18 | 4 | 'alter table %s attach partition %s %s', |
|
| 19 | 4 | $grammar->wrapTable($blueprint), |
|
| 20 | 4 | $command->get('partition'), |
|
| 21 | 4 | self::compileForValues($command) |
|
| 22 | 4 | ); |
|
| 23 | } |
||
| 24 | |||
| 25 | 4 | private static function compileForValues(Fluent $command): string |
|
| 35 | } |
||
| 36 | |||
| 37 | 3 | private static function formatValue($value) |
|
| 48 | } |
||
| 49 | } |
||
| 50 |