nginxsonarrradarrplexorganizrdashboardbookmarkapplication-dashboardmuximuxlandingpagestartpagelandinghtpcserverhomepagesabnzbdheimdallembycouchpotatonzbget
		
		
		
		
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							32 lines
						
					
					
						
							675 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							32 lines
						
					
					
						
							675 B
						
					
					
				| <?php | |
| 
 | |
| namespace Github\Exception; | |
| 
 | |
| /** | |
|  * ApiLimitExceedException. | |
|  * | |
|  * @author Joseph Bielawski <stloyd@gmail.com> | |
|  */ | |
| class ApiLimitExceedException extends RuntimeException | |
| { | |
|     private $limit; | |
|     private $reset; | |
| 
 | |
|     public function __construct($limit = 5000, $reset = 1800, $code = 0, $previous = null) | |
|     { | |
|         $this->limit = (int) $limit; | |
|         $this->reset = (int) $reset; | |
| 
 | |
|         parent::__construct(sprintf('You have reached GitHub hourly limit! Actual limit is: %d', $limit), $code, $previous); | |
|     } | |
| 
 | |
|     public function getLimit() | |
|     { | |
|         return $this->limit; | |
|     } | |
| 
 | |
|     public function getResetTime() | |
|     { | |
|         return $this->reset; | |
|     } | |
| }
 | |
| 
 |