public function registerInterest($interest, $token)
    {
        if (! $this->isValidExpoPushToken($token)) {
            throw ExpoRegistrarException::invalidToken();
        }

        $stored = $this->repository->store($interest, $token);

        if (!$stored) {
            throw ExpoRegistrarException::couldNotRegisterInterest();
        }

        return $token;
    }
public function registerInterest($interest, $token)
    {
        if (! $this->isValidExpoPushToken($token)) {
            throw ExpoRegistrarException::invalidToken();
        }

        $stored = $this->repository->store($interest, $token);

        if (!$stored) {
            throw ExpoRegistrarException::couldNotRegisterInterest();
        }

        return $token;
    }
public function registerInterest ( $ interest , $ token ) { if ( ! $ this -> isValidExpoPushToken ( $ token ) ) { throw ExpoRegistrarException :: invalidToken ( ) ; } $ stored = $ this -> repository -> store ( $ interest , $ token ) ; if ( ! $ stored ) { throw ExpoRegistrarException :: couldNotRegisterInterest ( ) ; } return $ token ; }
Registers the given token for the given interest

@param $interest
@param $token

@throws ExpoRegistrarException

@return string
Registers the given token for the given interest