public __construct ( array $config = [] ) | ||
$config | array | The config array. Options are: -`'actual'` _mixed_ : the actual value. -`'timeout'` _integer_ : the timeout value. |
public function __construct($config = [])
{
$defaults = ['actual' => null, 'timeout' => -1];
$config += $defaults;
$this->_actual = $config['actual'];
$this->_timeout = $config['timeout'];
}