public function __construct($retries = null, callable $retryFunction = null) { $this->retries = $retries !== null ? (int) $retries : 3; $this->retryFunction = $retryFunction; // @todo revisit this approach // @codeCoverageIgnoreStart $this->delayFunction = function ($delay) { usleep($delay); }; // @codeCoverageIgnoreEnd }