PHP Class Pantheon\Terminus\Collections\SSHKeys

Inheritance: extends UserOwnedCollection
Mostra file Open project: pantheon-systems/terminus

Protected Properties

Property Type Description
$collected_class string
$url string

Public Methods

Method Description
addKey ( string $key_file ) : array Adds an SSH key to the user's Pantheon account
deleteAll ( ) : array Deletes all SSH keys from account
fetch ( array $options = [] ) : SSHKeys Fetches model data from API and instantiates its model instances

Method Details

addKey() public method

Adds an SSH key to the user's Pantheon account
public addKey ( string $key_file ) : array
$key_file string Full path of the SSH key to add
return array

deleteAll() public method

Deletes all SSH keys from account
public deleteAll ( ) : array
return array

fetch() public method

Fetches model data from API and instantiates its model instances
public fetch ( array $options = [] ) : SSHKeys
$options array params to pass to url request
return SSHKeys $this

Property Details

$collected_class protected_oe property

protected string $collected_class
return string

$url protected_oe property

protected string $url
return string