PHP Interface hiqdev\assetpackagist\components\StorageInterface

Show file Open project: hiqdev/asset-packagist Interface Usage Examples

Public Methods

Method 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 method

TODO: PHPDoc
public getNextId ( )

listPackages() public method

TODO: PHPDoc
public listPackages ( )

readPackage() public method

Reads the $package information from the storage.
public readPackage ( AssetPackage $package ) : array | null
$package hiqdev\assetpackagist\models\AssetPackage
return 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 method

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