Skip to content

Migration

  • Full name: \Qubus\Expressive\Migration\Migration

Properties

version

protected int|string|null $version

objectmap

protected ?\ArrayAccess $objectmap

input

protected ?\Symfony\Component\Console\Input\InputInterface $input

output

protected ?\Symfony\Component\Console\Output\OutputInterface $output

dialogHelper

protected ?\Symfony\Component\Console\Helper\QuestionHelper $dialogHelper

adapter

protected ?\Qubus\Expressive\Migration\Adapter\MigrationAdapter $adapter

Methods

__construct

Constructor

final public __construct(int|string $version): mixed
  • This method is final.

Parameters:

Parameter Type Description
$version int|string

init

Init.

public init(): void

up

Do the migration.

public up(): void

down

Undo the migration.

public down(): void

getAdapter

Get adapter.

public getAdapter(): \Qubus\Expressive\Migration\Adapter\MigrationAdapter

getVersion

Get Version.

public getVersion(): int|string|null

setVersion

Set version.

public setVersion(int|string $version): \Qubus\Expressive\Migration\Migration

Parameters:

Parameter Type Description
$version int|string

getName

Get name.

public getName(): string

getObjectMap

Get ObjectMap.

public getObjectMap(): \ArrayAccess

setObjectMap

Set ObjectMap.

public setObjectMap(\ArrayAccess $objectmap): \Qubus\Expressive\Migration\Migration

Parameters:

Parameter Type Description
$objectmap \ArrayAccess

getOutput

Get Output.

public getOutput(): \Symfony\Component\Console\Output\OutputInterface|null

setOutput

Set Output.

public setOutput(\Symfony\Component\Console\Output\OutputInterface $output): \Qubus\Expressive\Migration\Migration

Parameters:

Parameter Type Description
$output \Symfony\Component\Console\Output\OutputInterface

getInput

Get Input.

public getInput(): \Symfony\Component\Console\Input\InputInterface|null

setInput

Set Input.

public setInput(\Symfony\Component\Console\Input\InputInterface $input): \Qubus\Expressive\Migration\Migration

Parameters:

Parameter Type Description
$input \Symfony\Component\Console\Input\InputInterface

ask

Ask for input.

public ask(\Symfony\Component\Console\Question\Question $question): mixed

Parameters:

Parameter Type Description
$question \Symfony\Component\Console\Question\Question

get

Get something from the objectmap

public get(string $key): mixed

Parameters:

Parameter Type Description
$key string

getDialogHelper

Get Dialog Helper.

public getDialogHelper(): \Symfony\Component\Console\Helper\QuestionHelper|null

setDialogHelper

Set Dialog Helper.

public setDialogHelper(\Symfony\Component\Console\Helper\QuestionHelper $dialogHelper): \Qubus\Expressive\Migration\Migration

Parameters:

Parameter Type Description
$dialogHelper \Symfony\Component\Console\Helper\QuestionHelper

schema

public schema(): \Qubus\Expressive\Schema


Automatically generated on 2025-10-13