create() public method

public create ( $entity, $activityTypeId, $balanceChange, $paidToDateChange, $altEntity = null )
 public function restoredExpense(ExpenseWasRestored $event)
 {
     $this->activityRepo->create($event->expense, ACTIVITY_TYPE_RESTORE_EXPENSE);
 }
 /**
  * Creates an activity when a task was updated
  *
  * @param TaskWasUpdated $event
  */
 public function updatedTask(TaskWasUpdated $event)
 {
     $this->activityRepo->create($event->task, ACTIVITY_TYPE_UPDATE_TASK);
 }