numberTokensSuccess = $numberSuccess; } /** * Get the number of device reached with success * * @return int */ public function numberSuccess() { return $this->numberTokensSuccess; } /** * set number of failures * * @param $numberFailures */ public function setNumberFailure($numberFailures) { $this->numberTokensSuccess = $numberFailures; } /** * Get the number of device which thrown an error * * @return int */ public function numberFailure() { return $this->numberTokensFailure; } /** * add a token to the failed list * * @param $tokenFailed */ public function addTokenFailed($tokenFailed) { $this->tokensFailed[] = $tokenFailed; } /** * Get all token in group that fcm cannot reach * * @return array */ public function tokensFailed() { return $this->tokensFailed; } }