PHP Класс Airship\Engine\Continuum\Updaters\UpdateFile

Encapsulates an update file (.phar or .zip)
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$hash string
$path string
$size integer
$version string

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

Метод Описание
__construct ( array $data ) UpdateFile constructor.
getHash ( ) : string Get the hex-encoded hash of the file contents
getPath ( ) : string Get the name of the file
getSize ( ) : integer Get the size of the file
getVersion ( ) : string Get the version of a particular update file.
hashMatches ( string $hash ) : boolean Does the given hash match the file?

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

__construct() публичный метод

UpdateFile constructor.
public __construct ( array $data )
$data array

getHash() публичный метод

Get the hex-encoded hash of the file contents
public getHash ( ) : string
Результат string

getPath() публичный метод

Get the name of the file
public getPath ( ) : string
Результат string

getSize() публичный метод

Get the size of the file
public getSize ( ) : integer
Результат integer

getVersion() публичный метод

Get the version of a particular update file.
public getVersion ( ) : string
Результат string

hashMatches() публичный метод

Does the given hash match the file?
public hashMatches ( string $hash ) : boolean
$hash string
Результат boolean

Описание свойств

$hash защищенное свойство

protected string $hash
Результат string

$path защищенное свойство

protected string $path
Результат string

$size защищенное свойство

protected int $size
Результат integer

$version защищенное свойство

protected string $version
Результат string