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. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
Transaction.php
001 <?php
002 namespace GuzzleHttp;
003
004 use GuzzleHttp\Message\RequestInterface;
005 use GuzzleHttp\Message\ResponseInterface;
006
007 /**
008 * Represents the relationship between a client, request, and response.
009 *
010 * You can access the request, response, and client using their corresponding
011 * public properties.
012 */
013 class Transaction
014 {
015 /**
016 * HTTP client used to transfer the request.
017 *
018 * @var ClientInterface
019 */
020 public $client;
021
022 /**
023 * The request that is being sent.
024 *
025 * @var RequestInterface
026 */
027 public $request;
028
029 /**
030 * The response associated with the transaction. A response will not be
031 * present when a networking error occurs or an error occurs before sending
032 * the request.
033 *
034 * @var ResponseInterface|null
035 */
036 public $response;
037
038 /**
039 * Exception associated with the transaction. If this exception is present
040 * when processing synchronous or future commands, then it is thrown. When
041 * intercepting a failed transaction, you MUST set this value to null in
042 * order to prevent the exception from being thrown.
043 *
044 * @var \Exception
045 */
046 public $exception;
047
048 /**
049 * Associative array of handler specific transfer statistics and custom
050 * key value pair information. When providing similar information, handlers
051 * should follow the same key value pair naming conventions as PHP's
052 * curl_getinfo() (http://php.net/manual/en/function.curl-getinfo.php).
053 *
054 * @var array
055 */
056 public $transferInfo = [];
057
058 /**
059 * The number of transaction retries.
060 *
061 * @var int
062 */
063 public $retries = 0;
064
065 /**
066 * The transaction's current state.
067 *
068 * @var string
069 */
070 public $state;
071
072 /**
073 * Whether or not this is a future transaction. This value should not be
074 * changed after the future is constructed.
075 *
076 * @var bool
077 */
078 public $future;
079
080 /**
081 * The number of state transitions that this transaction has been through.
082 *
083 * @var int
084 * @internal This is for internal use only. If you modify this, then you
085 * are asking for trouble.
086 */
087 public $_transitionCount = 0;
088
089 /**
090 * @param ClientInterface $client Client that is used to send the requests
091 * @param RequestInterface $request Request to send
092 * @param bool $future Whether or not this is a future request.
093 */
094 public function __construct(
095 ClientInterface $client,
096 RequestInterface $request,
097 $future = false
098 ) {
099 $this->client = $client;
100 $this->request = $request;
101 $this->_future = $future;
102 }
103 }
104