public function setTimeout($timeout = null)
    {
        if ($timeout === null) {
            $timeout = 30000;
        }
        if (!is_int($timeout)) {
            throw new \InvalidArgumentException('Parameter is not an integer');
        }
        if ($timeout < 0) {
            throw new \InvalidArgumentException(
                'Parameter is negative. Only positive timeouts accepted.'
            );
        }

        $this->timeout = $timeout;

        return $this;
    }
public function setTimeout($timeout = null)
    {
        if ($timeout === null) {
            $timeout = 30000;
        }
        if (!is_int($timeout)) {
            throw new \InvalidArgumentException('Parameter is not an integer');
        }
        if ($timeout < 0) {
            throw new \InvalidArgumentException(
                'Parameter is negative. Only positive timeouts accepted.'
            );
        }

        $this->timeout = $timeout;

        return $this;
    }
public function setTimeout ( $ timeout = null ) { if ( $ timeout === null ) { $ timeout = 30000 ; } if ( ! is_int ( $ timeout ) ) { throw new \ InvalidArgumentException ( 'Parameter is not an integer' ) ; } if ( $ timeout < 0 ) { throw new \ InvalidArgumentException ( 'Parameter is negative. Only positive timeouts accepted.' ) ; } $ this -> timeout = $ timeout ; return $ this ; }
Setting the timeout will define how long Diffbot will keep trying
to fetch the API results. A timeout can happen for various reasons, from
Diffbot's failure, to the site being crawled being exceptionally slow,
and more.

@param int|null $timeout Defaults to 30000 even if not set

@return $this
Setting the timeout will define how long Diffbot will keep trying to fetch the API results . A timeout can happen for various reasons from Diffbot s failure to the site being crawled being exceptionally slow and more .