public function getConsumedReadUnits($table = null)
    {
        if (is_null($table)) {
            return array_sum($this->readUnit);
        } else {
            return (isset($this->readUnit[$table])?$this->readUnit[$table]:0);
        }
    }
public function getConsumedReadUnits($table = null)
    {
        if (is_null($table)) {
            return array_sum($this->readUnit);
        } else {
            return (isset($this->readUnit[$table])?$this->readUnit[$table]:0);
        }
    }
public function getConsumedReadUnits ( $ table = null ) { if ( is_null ( $ table ) ) { return array_sum ( $ this -> readUnit ) ; } else { return ( isset ( $ this -> readUnit [ $ table ] ) ? $ this -> readUnit [ $ table ] : 0 ) ; } }
Return the number of read units consumed
@param string|null $table If null, return consumed units for all tables
@return float
Return the number of read units consumed