Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CheckBooking() {
- public function methodOne() {
- // methodOne
- }
- public function methodTwo() {
- // methodTwo
- }
- }
- $checkBooking = new CheckBooking();
- $checkBooking->methodOne();
- $checkBooking->methodTwo();
- // in this case, $checkBooking is $this->check_booking.
- $job = (new CheckUnconfirmProcess($this->uniqeId), $this->check_booking);
- dispatch($job);
- // so, can call like this in CheckUnconfirmProcess job.
- $this->check_booking->methodOne();
- $this->check_booking->methodTwo();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement