public function get($id)
{
$tokens = $this->getMembers();
if (isset($tokens[$id])) {
return $tokens[$id];
} else {
foreach ($tokens as $token) {
if ($id == $token->get('token')) {
return $token;
}
}
}
throw new TerminusException('Could not find a saved token identified by {id}.', compact('id'));
}