[ Index ] |
PHP Cross Reference of phpBB-3.2.11-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 namespace GuzzleHttp\Event; 3 4 use GuzzleHttp\Transaction; 5 use GuzzleHttp\ClientInterface; 6 use GuzzleHttp\Message\RequestInterface; 7 8 /** 9 * Base class for request events, providing a request and client getter. 10 */ 11 abstract class AbstractRequestEvent extends AbstractEvent 12 { 13 /** @var Transaction */ 14 protected $transaction; 15 16 /** 17 * @param Transaction $transaction 18 */ 19 public function __construct(Transaction $transaction) 20 { 21 $this->transaction = $transaction; 22 } 23 24 /** 25 * Get the HTTP client associated with the event. 26 * 27 * @return ClientInterface 28 */ 29 public function getClient() 30 { 31 return $this->transaction->client; 32 } 33 34 /** 35 * Get the request object 36 * 37 * @return RequestInterface 38 */ 39 public function getRequest() 40 { 41 return $this->transaction->request; 42 } 43 44 /** 45 * Get the number of transaction retries. 46 * 47 * @return int 48 */ 49 public function getRetryCount() 50 { 51 return $this->transaction->retries; 52 } 53 54 /** 55 * @return Transaction 56 */ 57 public function getTransaction() 58 { 59 return $this->transaction; 60 } 61 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Nov 11 20:33:01 2020 | Cross-referenced by PHPXref 0.7.1 |