PHP 인터페이스 Webmozart\Json\Migration\JsonMigration

The JSON object is expected to have the property "version" set.
부터: 1.3
저자: Bernhard Schussek ([email protected])
파일 보기 프로젝트 열기: webmozart/json 0 사용 예제들

공개 메소드들

메소드 설명
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