PHP Интерфейс Webmozart\Json\Migration\JsonMigration

The JSON object is expected to have the property "version" set.
С версии: 1.3
Автор: Bernhard Schussek ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
down ( stdClass $data ) Reverts a JSON object from the target to the source version.
getSourceVersion ( ) : string Returns the version of the JSON object that this migration expects.
getTargetVersion ( ) : string Returns the version of the JSON object that this migration upgrades to.
up ( stdClass $data ) Upgrades a JSON object from the source to the target version.

Описание методов

down() публичный Метод

Reverts a JSON object from the target to the source version.
public down ( stdClass $data )
$data stdClass The JSON object of the package file

getSourceVersion() публичный Метод

Returns the version of the JSON object that this migration expects.
public getSourceVersion ( ) : string
Результат string The version string

getTargetVersion() публичный Метод

Returns the version of the JSON object that this migration upgrades to.
public getTargetVersion ( ) : string
Результат string The version string

up() публичный Метод

Upgrades a JSON object from the source to the target version.
public up ( stdClass $data )
$data stdClass The JSON object of the package file