<?php
class client
{

    public static function updateBalance($value) {}

    public static function markClientAsNOTInUse($clientid)
    {
        if ($clientid == 1) {
            //do no thing. we didnot mark it as in use at begining
        } else {

            // Update using RedBeanPHP with parameter binding for security
            R::exec(
                'UPDATE client SET inUse = 0 WHERE clientid = :clientid',
                [':clientid' => $clientid]
            );
        }
    }
}
