PHP 클래스 Pantheon\Terminus\Models\Upstream

상속: extends TerminusModel
파일 보기 프로젝트 열기: pantheon-systems/terminus 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$site Site

공개 메소드들

메소드 설명
__construct ( $attributes, array $options = [] )
__toString ( )
getStatus ( ) : string Returns the status of this site's upstream updates
getUpdates ( ) : stdClass Retrives upstream updates
hasUpdates ( ) : boolean Determines whether there are any updates to be applied.
serialize ( )

보호된 메소드들

메소드 설명
parseAttributes ( $data )

메소드 상세

__construct() 공개 메소드

public __construct ( $attributes, array $options = [] )
$options array

__toString() 공개 메소드

public __toString ( )

getStatus() 공개 메소드

Returns the status of this site's upstream updates
public getStatus ( ) : string
리턴 string $status 'outdated' or 'current'

getUpdates() 공개 메소드

Retrives upstream updates
public getUpdates ( ) : stdClass
리턴 stdClass

hasUpdates() 공개 메소드

Determines whether there are any updates to be applied.
public hasUpdates ( ) : boolean
리턴 boolean

parseAttributes() 보호된 메소드

protected parseAttributes ( $data )

serialize() 공개 메소드

public serialize ( )

프로퍼티 상세

$site 공개적으로 프로퍼티

public Site,Pantheon\Terminus\Models $site
리턴 Site