MongoDB\Driver\WriteConcern
PHP Manual

MongoDB\Driver\WriteConcern::getWtimeout

(mongodb >=1.0.0)

MongoDB\Driver\WriteConcern::getWtimeoutReturns the WriteConcern's "wtimeout" option

Descrição

final public int MongoDB\Driver\WriteConcern::getWtimeout ( void )

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

Returns the WriteConcern's "wtimeout" option.

Erros

Exemplos

Exemplo #1 MongoDB\Driver\WriteConcern::getWtimeout() example

<?php

$wc 
= new MongoDB\Driver\WriteConcern(1);
var_dump($wc->getWtimeout());

$wc = new MongoDB\Driver\WriteConcern(MongoDB\Driver\WriteConcern::MAJORITY3000);
var_dump($wc->getWtimeout());

?>

O exemplo acima irá imprimir:

int(0)
int(3000)

Veja Também


MongoDB\Driver\WriteConcern
PHP Manual