PHP 인터페이스 Webmozart\Json\Versioning\JsonVersioner

부터: 1.3
저자: Bernhard Schussek ([email protected])
파일 보기 프로젝트 열기: webmozart/json 0 사용 예제들

공개 메소드들

메소드 설명
parseVersion ( stdClass $jsonData ) : string Parses and returns the version of a JSON object.
updateVersion ( stdClass $jsonData, string $version ) Updates the version of a JSON object.

메소드 상세

parseVersion() 공개 메소드

Parses and returns the version of a JSON object.
public parseVersion ( stdClass $jsonData ) : string
$jsonData stdClass The JSON object
리턴 string The version

updateVersion() 공개 메소드

Updates the version of a JSON object.
public updateVersion ( stdClass $jsonData, string $version )
$jsonData stdClass The JSON object
$version string The version to set