public final function setTimeout($timeout) { if ($timeout < 1) { throw new Exception("timeout must be great than 0"); } $this->timeout = $timeout; }