original_string: public function credit($points, UserContext $context)
      {
          // credit points
          $this->userTable->creditPoints($context->getUserId(), $points);
  
          // dispatch credited event
          $this->eventDispatcher->dispatch(PlanEvents::CREDIT, new CreditedEvent($points, $context));
      }
code: public function credit($points, UserContext $context)
      {
          // credit points
          $this->userTable->creditPoints($context->getUserId(), $points);
  
          // dispatch credited event
          $this->eventDispatcher->dispatch(PlanEvents::CREDIT, new CreditedEvent($points, $context));
      }
code_tokens: public function credit ( $ points , UserContext $ context ) { // credit points $ this -> userTable -> creditPoints ( $ context -> getUserId ( ) , $ points ) ; // dispatch credited event $ this -> eventDispatcher -> dispatch ( PlanEvents :: CREDIT , new CreditedEvent ( $ points , $ context ) ) ; }
docstring: Method which is called in case the user has bought new points. It adds
  the points to the user account
  
  @param integer $points
  @param \Fusio\Impl\Authorization\UserContext $context
docstring_tokens: Method which is called in case the user has bought new points . It adds the points to the user account