PHP Interface Webmozart\Json\Versioning\JsonVersioner

Since: 1.3
Author: Bernhard Schussek ([email protected])
Afficher le fichier Open project: webmozart/json Interface Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

parseVersion() public méthode

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

updateVersion() public méthode

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