public function resetConsumedUnits($table = null)
    {
        if (is_null($table)) {
            if (null !== $this->logger) {
                $this->log('Reset all consumed units counters');
            }
            $this->readUnit  = array();
            $this->writeUnit = array();
        } else {
            if (null !== $this->logger) {
                $this->log('Reset consumed units counters for table '.$table);
            }
            unset(
                $this->readUnit[$table],
                $this->writeUnit[$table]
            );
        }
    }
public function resetConsumedUnits($table = null)
    {
        if (is_null($table)) {
            if (null !== $this->logger) {
                $this->log('Reset all consumed units counters');
            }
            $this->readUnit  = array();
            $this->writeUnit = array();
        } else {
            if (null !== $this->logger) {
                $this->log('Reset consumed units counters for table '.$table);
            }
            unset(
                $this->readUnit[$table],
                $this->writeUnit[$table]
            );
        }
    }
public function resetConsumedUnits ( $ table = null ) { if ( is_null ( $ table ) ) { if ( null !== $ this -> logger ) { $ this -> log ( 'Reset all consumed units counters' ) ; } $ this -> readUnit = array ( ) ; $ this -> writeUnit = array ( ) ; } else { if ( null !== $ this -> logger ) { $ this -> log ( 'Reset consumed units counters for table ' . $ table ) ; } unset ( $ this -> readUnit [ $ table ] , $ this -> writeUnit [ $ table ] ) ; } }
Reset the read and write unit counter
@param string|null $table If null, reset all consumed units
Reset the read and write unit counter