src/Migration/MigrationManager.php
public function migrate(stdClass $data, $targetVersion)
    {
        $sourceVersion = $this->versioner->parseVersion($data);

        if (version_compare($targetVersion, $sourceVersion, '>')) {
            $this->up($data, $sourceVersion, $targetVersion);
        } elseif (version_compare($targetVersion, $sourceVersion, '<')) {
            $this->down($data, $sourceVersion, $targetVersion);
        }
    }
public function migrate(stdClass $data, $targetVersion)
    {
        $sourceVersion = $this->versioner->parseVersion($data);

        if (version_compare($targetVersion, $sourceVersion, '>')) {
            $this->up($data, $sourceVersion, $targetVersion);
        } elseif (version_compare($targetVersion, $sourceVersion, '<')) {
            $this->down($data, $sourceVersion, $targetVersion);
        }
    }
public function migrate ( stdClass $ data , $ targetVersion ) { $ sourceVersion = $ this -> versioner -> parseVersion ( $ data ) ; if ( version_compare ( $ targetVersion , $ sourceVersion , '>' ) ) { $ this -> up ( $ data , $ sourceVersion , $ targetVersion ) ; } elseif ( version_compare ( $ targetVersion , $ sourceVersion , '<' ) ) { $ this -> down ( $ data , $ sourceVersion , $ targetVersion ) ; } }
Migrates a JSON object to the given version.

@param stdClass $data          The JSON object
@param string   $targetVersion The version string
Migrates a JSON object to the given version .