delay = $delay; } /** * Get the desired delay interval for this item. * * @return float|null * If the time for when the queue will be ready to resume processing is * known, pass an interval in seconds. Otherwise NULL if the time to resume * processing the queue is not known. */ public function getDelay(): ?float { return $this->delay; } /** * Determine whether the next time the queue should be checked is known. * * @return bool * Whether the time to resume processing the queue is known. */ public function isDelayable(): bool { return isset($this->delay); } }