Verzeichnisstruktur phpBB-3.2.0


Veröffentlicht
06.01.2017

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

AbstractRequestEvent.php

Zuletzt modifiziert: 09.10.2024, 12:57 - Dateigröße: 1.16 KiB


01  <?php
02  namespace GuzzleHttp\Event;
03   
04  use GuzzleHttp\Transaction;
05  use GuzzleHttp\ClientInterface;
06  use GuzzleHttp\Message\RequestInterface;
07   
08  /**
09   * 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  }
62