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));
    }