PHP 인터페이스 hiqdev\assetpackagist\components\StorageInterface

파일 보기 프로젝트 열기: hiqdev/asset-packagist 0 사용 예제들

공개 메소드들

메소드 설명
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