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

        return $this;
    }