Method | Description | |
---|---|---|
__construct ( array $migrations, Webmozart\Json\Versioning\JsonVersioner $versioner = null ) | Creates a new migration manager. | |
getKnownVersions ( ) : string[] | Returns all versions known to the manager. | |
migrate ( stdClass $data, string $targetVersion ) | Migrates a JSON object to the given version. |
Method | Description | |
---|---|---|
down ( $data, $sourceVersion, $targetVersion ) | ||
up ( $data, $sourceVersion, $targetVersion ) |
public __construct ( array $migrations, Webmozart\Json\Versioning\JsonVersioner $versioner = null ) | ||
$migrations | array | The migrations migrating a JSON object between individual versions |
$versioner | Webmozart\Json\Versioning\JsonVersioner | The versioner that should be used |
public getKnownVersions ( ) : string[] | ||
return | string[] | The known version strings |