PHP Interface hiqdev\assetpackagist\components\StorageInterface

Afficher le fichier Open project: hiqdev/asset-packagist Interface Usage Examples

Méthodes publiques

Méthode Description
getNextId ( ) TODO: PHPDoc
listPackages ( ) TODO: PHPDoc
readPackage ( AssetPackage $package ) : array | null Reads the $package information from the storage.
writePackage ( AssetPackage $package ) : string Writes the $package to the storage

Method Details

getNextId() public méthode

TODO: PHPDoc
public getNextId ( )

listPackages() public méthode

TODO: PHPDoc
public listPackages ( )

readPackage() public méthode

Reads the $package information from the storage.
public readPackage ( AssetPackage $package ) : array | null
$package hiqdev\assetpackagist\models\AssetPackage
Résultat array | null array of two elements: 0 - string sha256 hash of the package 1 - array[] releases Returns null, when package does not exist.

writePackage() public méthode

Writes the $package to the storage
public writePackage ( AssetPackage $package ) : string
$package hiqdev\assetpackagist\models\AssetPackage
Résultat string hash or the package on success