public function onFulfilled(Promisable $promised) { $promised->meaning += 2; /* throwing an exception here will cause invocation of PrintMeaning::onError */ }