Advertisement
Guest User

object

a guest
Oct 23rd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. class CheckBooking() {
  2.    
  3.     public function methodOne() {
  4.         // methodOne
  5.     }
  6.  
  7.     public function methodTwo() {
  8.         // methodTwo
  9.     }
  10. }
  11.  
  12. $checkBooking = new CheckBooking();
  13. $checkBooking->methodOne();
  14. $checkBooking->methodTwo();
  15.  
  16. // in this case, $checkBooking is $this->check_booking.
  17. $job = (new CheckUnconfirmProcess($this->uniqeId), $this->check_booking);
  18. dispatch($job);
  19.  
  20. // so, can call like this in CheckUnconfirmProcess job.
  21. $this->check_booking->methodOne();
  22. $this->check_booking->methodTwo();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement