예제 #1
0
 /** @inheritdoc} */
 public function setProfit(MlmSystemClient $client, $profit = 0)
 {
     if (empty($profit) or in_array($client->getOne('status'), array($client->getStatusBlocked(), $client->getStatusRemoved()))) {
         return false;
     }
     $client->profitSum($profit);
     return $client->save();
 }