| Total Complexity | 6 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class MigrationFileBuilder |
||
| 14 | { |
||
| 15 | /** @var string */ |
||
| 16 | private $tableName; |
||
| 17 | |||
| 18 | /** @var string */ |
||
| 19 | private $columnName; |
||
| 20 | |||
| 21 | 10 | public function __construct( |
|
| 22 | string $tableName, |
||
| 23 | string $columnName |
||
| 24 | ) { |
||
| 25 | 10 | $this->columnName = $columnName; |
|
| 26 | 10 | $this->tableName = $tableName; |
|
| 27 | 10 | } |
|
| 28 | |||
| 29 | /** @param string[][] $queriesByVersion */ |
||
| 30 | 9 | public function buildMigrationFile( |
|
| 50 | } |
||
| 51 | |||
| 52 | 9 | private function getVersionUpdateQuery(string $version, string $direction) : string |
|
| 68 |