\Action_Scheduler\MigrationDryRun_ActionMigrator

Class DryRun_ActionMigrator

Summary

Methods
Properties
Constants
__construct()
migrate()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$source
$destination
$log_migrator
N/A

Properties

$source

$source : \Action_Scheduler\Migration\ActionScheduler_Store

Source store instance.

Type

\Action_Scheduler\Migration\ActionScheduler_Store

$destination

$destination : \Action_Scheduler\Migration\ActionScheduler_Store

Destination store instance.

Type

\Action_Scheduler\Migration\ActionScheduler_Store

$log_migrator

$log_migrator : \Action_Scheduler\Migration\LogMigrator

LogMigrator instance.

Type

normal

Methods

__construct()

__construct(\ActionScheduler_Store  $source_store, \ActionScheduler_Store  $destination_store, \Action_Scheduler\Migration\LogMigrator  $log_migrator) : mixed

ActionMigrator constructor.

Parameters

\ActionScheduler_Store $source_store

Source store object.

\ActionScheduler_Store $destination_store

Destination store object.

\Action_Scheduler\Migration\LogMigrator $log_migrator

Log migrator object.

Returns

mixed

migrate()

migrate(int  $source_action_id) : int

Simulate migrating an action.

Parameters

int $source_action_id

Action ID.

Returns

int