# jc-importer/2.7.5/class/Common/Addon/AddonMigration.php

Import WP – CSV &amp; XML Import Export for WordPress, version 2.7.5. 20 lines.

- Page: https://pluginprobe.com/plugins/jc-importer/2.7.5/code/class/Common/Addon/AddonMigration.php
- Raw: https://pluginprobe.com/plugins/jc-importer/2.7.5/raw/class/Common/Addon/AddonMigration.php
- Modified: 2022-06-10T17:48:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jc-importer/2.7.5/code/class/Common/Addon/AddonMigration.php#L10-L20`.

```php
<?php

namespace ImportWP\Common\Addon;

class AddonMigration
{
    protected $_migrations = [];

    public function up($callback)
    {
        $this->_migrations[] = $callback;
        return $this;
    }

    public function data()
    {
        return $this->_migrations;
    }
}

```
