/** @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(); }