См. определение в файле promise.php строка 16
◆ __construct()
| __construct |
( |
| $handler, |
|
|
Queue | $queue ) |
◆ fulfill()
| fulfill |
( |
ResponseInterface | $response | ) |
|
Fulfills the promise.
- Аргументы
-
| ResponseInterface | $response | |
- Возвращает
- void
См. определение в файле promise.php строка 110
◆ getHandler()
◆ getId()
Returns the promise's id string.
- Возвращает
- string
См. определение в файле promise.php строка 166
◆ getRequest()
- Возвращает
- RequestInterface
См. определение в файле promise.php строка 156
◆ getState()
◆ reject()
Rejects the promise.
- Аргументы
-
| ClientException | $exception | |
- Возвращает
- void
См. определение в файле promise.php строка 133
◆ then()
| then |
( |
callable | $onFulfilled = null, |
|
|
callable | $onRejected = null ) |
◆ wait()
◆ $exception
◆ $handler
◆ $id
◆ $onFulfilled
◆ $onRejected
◆ $queue
◆ $response
| ResponseInterface $response |
|
protected |
◆ $state
| string $state = self::PENDING |
|
protected |
Объявления и описания членов класса находятся в файле: