PHP Class Pantheon\Terminus\Models\SavedToken

Inheritance: extends TerminusModel, implements Pantheon\Terminus\Session\SessionAwareInterface, implements Robo\Contract\ConfigAwareInterface, implements Pantheon\Terminus\DataStore\DataStoreAwareInterface, use trait Pantheon\Terminus\Session\SessionAwareTrait, use trait Robo\Common\ConfigAwareTrait, use trait Pantheon\Terminus\DataStore\DataStoreAwareTrait
Show file Open project: pantheon-systems/terminus Class Usage Examples

Public Methods

Method Description
__construct ( $attributes = null, array $options = [] )
delete ( ) Delete the token.
logIn ( ) : User Starts a session with this saved token
saveToDir ( ) Saves this token to a file in the tokens cache dir

Protected Methods

Method Description
parseAttributes ( $data )

Method Details

__construct() public method

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

delete() public method

Delete the token.
public delete ( )

logIn() public method

Starts a session with this saved token
public logIn ( ) : User
return User An object representing the now-logged-in user

parseAttributes() protected method

protected parseAttributes ( $data )

saveToDir() public method

Saves this token to a file in the tokens cache dir
public saveToDir ( )