YoastSEO_Vendor\GuzzleHttp\Promise
PromiseInterface::then() public Yoast 1.0
Appends fulfillment and rejection handlers to the promise, and returns a new promise resolving to the return value of the called handler.
{} Это метод класса: PromiseInterface{}
Хуков нет.
Возвращает
PromiseInterface.
Использование
$PromiseInterface = new PromiseInterface(); $PromiseInterface->then( $onFulfilled, $onRejected );
- $onFulfilled(callable)
- Invoked when the promise fulfills.
По умолчанию: null - $onRejected(callable)
- Invoked when the promise is rejected.
По умолчанию: null
Код PromiseInterface::then() PromiseInterface::then Yoast 15.6.2
public function then(callable $onFulfilled = null, callable $onRejected = null);