private function addConfirmedDeposit(Deposit $entity) { $entity->getAccount()->addTotalDeposit($entity->getAmount()); $this->stats->addTotalDeposit($entity->getAmount()); if ($entity->getReferrerPayout()) { $entity->getAccount()->addTotalUnpaidReferralEarnings($entity->getReferrerPayout()->getAmount()); } }
public function __construct() { $this->stats = new Stats(); $this->stats->setRound($this); }