/** * Handle notification */ public function notification($callback) { // If there's a notification if ($this->hasNotification()) { // Execute callback passing the notification $this->success = Utilities::executeCallback($callback, [$this->notification]); } // Return self return $this; }