Properties

$version

$version : string

The target version to migrate to.

Type

string

$previous_version

$previous_version : string

The previous version to migrate from.

Type

string

Methods

__construct()

__construct(\BWP_Framework_V3  $plugin) 

Construct new migration class.

Parameters

Throws

\DomainException

if previous version is higher than target version.

up()

up() 

Migrate to the target version.

get_version()

get_version() : string

Get the target version.

Returns

string

get_previous_version()

get_previous_version() : string

Get the previous version.

Returns

string

get_migration_filename()

get_migration_filename() : string

Get migration filename.

Returns

string

has_option()

has_option(string  $name) : boolean

Check if a plugin option exists.

Parameters

string $name

The option's name.

Returns

boolean

get_option()

get_option(string  $name) : mixed

Get plugin option.

Parameters

string $name

The option's name.

Returns

mixed