PHP 클래스 Airship\Engine\Continuum\Updaters\UpdateFile

Encapsulates an update file (.phar or .zip)
파일 보기 프로젝트 열기: paragonie/airship 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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