original_string: public function getCurrentTransaction()
      {
          if (false === $this->session->has('transaction-id')) {
              throw new AccessDeniedHttpException();
          }
  
          return $this->manager->getRepository('EcommerceBundle:Transaction')->find($this->session->get('transaction-id'));
      }
code: public function getCurrentTransaction()
      {
          if (false === $this->session->has('transaction-id')) {
              throw new AccessDeniedHttpException();
          }
  
          return $this->manager->getRepository('EcommerceBundle:Transaction')->find($this->session->get('transaction-id'));
      }
code_tokens: public function getCurrentTransaction ( ) { if ( false === $ this -> session -> has ( 'transaction-id' ) ) { throw new AccessDeniedHttpException ( ) ; } return $ this -> manager -> getRepository ( 'EcommerceBundle:Transaction' ) -> find ( $ this -> session -> get ( 'transaction-id' ) ) ; }
docstring: Get current transaction
  
  @throws AccessDeniedHttpException
  @return Transaction
docstring_tokens: Get current transaction