public function token() { if (!$this->token) { throw new NoTokenException('No token has been set.'); } return $this->token; }