/** * {@inheritdoc} */ public function reject($reason = null) { try { parent::reject($reason); } catch (\Exception $e) { $reason = $e; } $this->deferred->reject($reason); }
/** * @param callable $onFulfilled * @param callable $onRejected * @param callable $onNotify */ public function __construct(callable $onFulfilled = null, callable $onRejected = null, callable $onNotify = null) { parent::__construct($onFulfilled, $onRejected, $onNotify); }
/** * {@inheritdoc} */ public function notify($state = null) { $this->promise(); parent::notify($state); }