original_string: protected function getHeaders($maxAttempts, $remainingAttempts, $retryAfter = null)
      {
          $headers = [
              'X-RateLimit-Limit' => $maxAttempts,
              'X-RateLimit-Remaining' => $remainingAttempts,
          ];
  
          if (! is_null($retryAfter)) {
              $headers['Retry-After'] = $retryAfter;
              $headers['X-RateLimit-Reset'] = $this->availableAt($retryAfter);
          }
  
          return $headers;
      }
code: protected function getHeaders($maxAttempts, $remainingAttempts, $retryAfter = null)
      {
          $headers = [
              'X-RateLimit-Limit' => $maxAttempts,
              'X-RateLimit-Remaining' => $remainingAttempts,
          ];
  
          if (! is_null($retryAfter)) {
              $headers['Retry-After'] = $retryAfter;
              $headers['X-RateLimit-Reset'] = $this->availableAt($retryAfter);
          }
  
          return $headers;
      }
code_tokens: protected function getHeaders ( $ maxAttempts , $ remainingAttempts , $ retryAfter = null ) { $ headers = [ 'X-RateLimit-Limit' => $ maxAttempts , 'X-RateLimit-Remaining' => $ remainingAttempts , ] ; if ( ! is_null ( $ retryAfter ) ) { $ headers [ 'Retry-After' ] = $ retryAfter ; $ headers [ 'X-RateLimit-Reset' ] = $ this -> availableAt ( $ retryAfter ) ; } return $ headers ; }
docstring: Get the limit headers information.
  
  @param  int  $maxAttempts
  @param  int  $remainingAttempts
  @param  int|null  $retryAfter
  @return array
docstring_tokens: Get the limit headers information .