PHP Интерфейс hiqdev\assetpackagist\components\StorageInterface

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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

Описание методов

getNextId() публичный Метод

TODO: PHPDoc
public getNextId ( )

listPackages() публичный Метод

TODO: PHPDoc
public listPackages ( )

readPackage() публичный Метод

Reads the $package information from the storage.
public readPackage ( AssetPackage $package ) : array | null
$package hiqdev\assetpackagist\models\AssetPackage
Результат array | null array of two elements: 0 - string sha256 hash of the package 1 - array[] releases Returns null, when package does not exist.

writePackage() публичный Метод

Writes the $package to the storage
public writePackage ( AssetPackage $package ) : string
$package hiqdev\assetpackagist\models\AssetPackage
Результат string hash or the package on success