public function setDelay($delay)
    {
        if (!ctype_digit((string) $delay)) {
            throw new \InvalidArgumentException('Delay must be a number.');
        }
        $this->delay = $delay;

        return $this;
    }
public function setDelay($delay)
    {
        if (!ctype_digit((string) $delay)) {
            throw new \InvalidArgumentException('Delay must be a number.');
        }
        $this->delay = $delay;

        return $this;
    }
public function setDelay ( $ delay ) { if ( ! ctype_digit ( ( string ) $ delay ) ) { throw new \ InvalidArgumentException ( 'Delay must be a number.' ) ; } $ this -> delay = $ delay ; return $ this ; }
The time it takes for the handler to respond.

@param int $delay

@throws \InvalidArgumentException
@return WorkerCommunication
The time it takes for the handler to respond .