component = $component; $this->ip = $ip; $this->method = $method; $this->secondsUntilAvailable = $secondsUntilAvailable; $this->minutesUntilAvailable = ceil($this->secondsUntilAvailable / 60); parent::__construct(sprintf( 'Too many requests from [%s] to method [%s] on component: [%s]. Retry in %d seconds.', $this->ip, $this->method, $this->component, $this->secondsUntilAvailable, )); } }