5.1.5.4. Baleen\Migrations\Timeline\TimelineInterface¶
-
interface
TimelineInterface
¶ The Timeline is responsible of emitting MigrateCommands based on how the user wants to navigate the timeline (e.g. travel to a specific version). It takes into account the current state.
-
upTowards
($version, OptionsInterface $options)¶ Runs all versions up, starting from the oldest and until (and including) the specified version.
Parameters: - $version (string|DeltaInterface) –
- $options (OptionsInterface) –
-
downTowards
($version, OptionsInterface $options)¶ Runs all versions down, starting from the newest and until (and including) the specified version.
Parameters: - $version (string|DeltaInterface) –
- $options (OptionsInterface) –
-
goTowards
($goalVersion, OptionsInterface $options)¶ Runs migrations up/down so that all versions before and including the specified version are “up” and all versions after the specified version are “down”.
Parameters: - $goalVersion (string|DeltaInterface) –
- $options (OptionsInterface) –
-
runSingle
(DeltaInterface $version, OptionsInterface $options, Progress $progress)¶ Runs a single migration in the specified direction.
Parameters: - $version (DeltaInterface) –
- $options (OptionsInterface) –
- $progress (Progress) –
Returns: DeltaInterface|false
-
getVersions
()¶ getVersions
Returns: Linked
-