original_string: public function getToken(UserSession $user): Token
      {
          // @todo Test that the expiresAfter() call works. We don't want to be caught
          // by cron etc.
          $item = $this->cacheItemPool->getItem($this->cacheKey($user));
  
          if (!$item->isHit()) {
              throw new TokenNotFoundException($user);
          }
  
          return $item->get();
      }
code: public function getToken(UserSession $user): Token
      {
          // @todo Test that the expiresAfter() call works. We don't want to be caught
          // by cron etc.
          $item = $this->cacheItemPool->getItem($this->cacheKey($user));
  
          if (!$item->isHit()) {
              throw new TokenNotFoundException($user);
          }
  
          return $item->get();
      }
code_tokens: public function getToken ( UserSession $ user ) : Token { // @todo Test that the expiresAfter() call works. We don't want to be caught // by cron etc. $ item = $ this -> cacheItemPool -> getItem ( $ this -> cacheKey ( $ user ) ) ; if ( ! $ item -> isHit ( ) ) { throw new TokenNotFoundException ( $ user ) ; } return $ item -> get ( ) ; }
docstring: Get the cached token for a user.
  
  @param \Lullabot\Mpx\Service\IdentityManagement\UserSession $user The user to look up tokens for.
  
  @return \Lullabot\Mpx\Token The cached token.
docstring_tokens: Get the cached token for a user .