| 1 | <?php |
||
| 5 | class PreMigrationEvent extends MigrationEvent |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var array |
||
| 9 | * key = bundle name |
||
| 10 | * value = version |
||
| 11 | */ |
||
| 12 | protected $loadedVersions = []; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Gets a list of the latest loaded versions for all bundles |
||
| 16 | * |
||
| 17 | * @return array |
||
| 18 | * key = bundle name |
||
| 19 | * value = version |
||
| 20 | */ |
||
| 21 | public function getLoadedVersions() |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Gets the latest version loaded version of the given bundle |
||
| 28 | * |
||
| 29 | * @param string $bundleName |
||
| 30 | * @return string|null |
||
| 31 | */ |
||
| 32 | public function getLoadedVersion($bundleName) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Sets a number of already loaded version of the given bundle |
||
| 41 | * |
||
| 42 | * @param string $bundleName |
||
| 43 | * @param string $version |
||
| 44 | */ |
||
| 45 | public function setLoadedVersion($bundleName, $version) |
||
| 49 | } |
||
| 50 |