PHP Class Pantheon\Terminus\Models\Upstream

Inheritance: extends TerminusModel
Afficher le fichier Open project: pantheon-systems/terminus Class Usage Examples

Méthodes publiques

Свойство Type Description
$site Site

Méthodes publiques

Méthode Description
__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 ( )

Méthodes protégées

Méthode Description
parseAttributes ( $data )

Method Details

__construct() public méthode

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

__toString() public méthode

public __toString ( )

getStatus() public méthode

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

getUpdates() public méthode

Retrives upstream updates
public getUpdates ( ) : stdClass
Résultat stdClass

hasUpdates() public méthode

Determines whether there are any updates to be applied.
public hasUpdates ( ) : boolean
Résultat boolean

parseAttributes() protected méthode

protected parseAttributes ( $data )

serialize() public méthode

public serialize ( )

Property Details

$site public_oe property

public Site,Pantheon\Terminus\Models $site
Résultat Site