diff --git a/src/Input/PollingOptions.php b/src/Input/PollingOptions.php index 60e2c3e3..25dd38df 100644 --- a/src/Input/PollingOptions.php +++ b/src/Input/PollingOptions.php @@ -5,8 +5,8 @@ use Mindee\Error\ErrorCode; use Mindee\Error\MindeeApiException; -const MINIMUM_INITIAL_DELAY_SECONDS = 1.0; -const MINIMUM_DELAY_SECONDS = 1.0; +const MINIMUM_INITIAL_DELAY_SECONDS = 1; +const MINIMUM_DELAY_SECONDS = 1; /** * Handles options tied to asynchronous parsing. @@ -14,13 +14,13 @@ class PollingOptions { /** - * @var float Initial delay (in seconds) before attempting to poll a queue. + * @var integer Initial delay (in seconds) before attempting to poll a queue. */ - public float $initialDelaySec; + public int $initialDelaySec; /** - * @var float Delay (in seconds) between successive attempts to poll a queue. + * @var integer Delay (in seconds) between successive attempts to poll a queue. */ - public float $delaySec; + public int $delaySec; /** * @var integer Maximum number of retries for a queue. */ @@ -31,8 +31,8 @@ class PollingOptions */ public function __construct() { - $this->initialDelaySec = 2.0; - $this->delaySec = 1.5; + $this->initialDelaySec = 2; + $this->delaySec = 1; $this->maxRetries = 80; }