YoastSEO_Vendor\GuzzleHttp\Promise
PromiseInterface::otherwise() public Yoast 1.0
Appends a rejection handler callback to the promise, and returns a new promise resolving to the return value of the callback if it is called, or to its original fulfillment value if the promise is instead fulfilled.
{} Это метод класса: PromiseInterface{}
Хуков нет.
Возвращает
PromiseInterface.
Использование
$PromiseInterface = new PromiseInterface(); $PromiseInterface->otherwise( $onRejected );
- $onRejected(callable) (обязательный)
- Invoked when the promise is rejected.
Код PromiseInterface::otherwise() PromiseInterface::otherwise Yoast 15.6.2
public function otherwise(callable $onRejected);