bandwidthThrottle\tokenBucket\storage\PDOStorage::setMicrotime PHP Метод

setMicrotime() публичный Метод

public setMicrotime ( $microtime )
    public function setMicrotime($microtime)
    {
        try {
            $update = $this->pdo->prepare("UPDATE TokenBucket SET microtime = ? WHERE name = ?");
            $update->execute([$microtime, $this->name]);
        } catch (\PDOException $e) {
            throw new StorageException("Failed to write to storage '{$this->name}'.", 0, $e);
        }
    }