App\services\PushService::checkDeviceExists PHP Méthode

checkDeviceExists() private méthode

Returns a boolean if this account has devices registered for PUSH notifications
private checkDeviceExists ( App\Models\Account $account ) : boolean
$account App\Models\Account
Résultat boolean
    private function checkDeviceExists(Account $account)
    {
        $devices = json_decode($account->devices, TRUE);
        if (count($devices) >= 1) {
            return TRUE;
        } else {
            return FALSE;
        }
    }