public function __construct($timeout = 3) { if ($timeout <= 0) { throw new \LengthException("The timeout must be greater than 0. '{$timeout}' was given"); } $this->timeout = $timeout; }