Pantheon\Terminus\Session\Session::getTokens PHP Method

getTokens() public method

public getTokens ( ) : SavedTokens
return Pantheon\Terminus\Collections\SavedTokens
    public function getTokens()
    {
        if (empty($this->tokens)) {
            $this->tokens = $this->getContainer()->get(SavedTokens::class, [['session' => $this]]);
        }
        return $this->tokens;
    }