Skip to content

Migrator

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

Properties

objectmap

protected ?\ArrayAccess $objectmap

adapter

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

output

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

Methods

__construct

Constructor

public __construct(\Qubus\Expressive\Migration\Adapter\MigrationAdapter $adapter, \ArrayAccess $objectmap, \Symfony\Component\Console\Output\OutputInterface $output): mixed

Parameters:

Parameter Type Description
$adapter \Qubus\Expressive\Migration\Adapter\MigrationAdapter
$objectmap \ArrayAccess
$output \Symfony\Component\Console\Output\OutputInterface

up

Run the up method on a migration

public up(\Qubus\Expressive\Migration\Migration $migration): void

Parameters:

Parameter Type Description
$migration \Qubus\Expressive\Migration\Migration

down

Run the down method on a migration

public down(\Qubus\Expressive\Migration\Migration $migration): void

Parameters:

Parameter Type Description
$migration \Qubus\Expressive\Migration\Migration

run

Run a migration in a particular direction

protected run(\Qubus\Expressive\Migration\Migration $migration, string $direction = 'up'): void

Parameters:

Parameter Type Description
$migration \Qubus\Expressive\Migration\Migration
$direction string

getObjectMap

Get ObjectMap.

public getObjectMap(): \ArrayAccess

setObjectMap

Set ObjectMap.

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

Parameters:

Parameter Type Description
$objectmap \ArrayAccess

getAdapter

Get Adapter

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

setAdapter

Set Adapter

public setAdapter(\Qubus\Expressive\Migration\Adapter\MigrationAdapter $adapter): \Qubus\Expressive\Migration\Migrator

Parameters:

Parameter Type Description
$adapter \Qubus\Expressive\Migration\Adapter\MigrationAdapter

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\Migrator

Parameters:

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


Automatically generated on 2025-10-13