Migration
- Full name:
\Qubus\Expressive\Migration\Migration
Properties
version
protected int|string|null $version
objectmap
protected ?\ArrayAccess $objectmap
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.
up
Do the migration.
down
Undo the migration.
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): self
Parameters:
| Parameter | Type | Description |
$version | int|string | |
getName
Get name.
getObjectMap
Get ObjectMap.
public getObjectMap(): \ArrayAccess
setObjectMap
Set ObjectMap.
public setObjectMap(\ArrayAccess $objectmap): self
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): self
Parameters:
| Parameter | Type | Description |
$output | \Symfony\Component\Console\Output\OutputInterface | |
Get Input.
public getInput(): \Symfony\Component\Console\Input\InputInterface|null
Set Input.
public setInput(\Symfony\Component\Console\Input\InputInterface $input): self
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): self
Parameters:
| Parameter | Type | Description |
$dialogHelper | \Symfony\Component\Console\Helper\QuestionHelper | |
schema
public schema(): \Qubus\Expressive\Schema