Last active
November 17, 2017 14:35
-
-
Save NtimYeboah/b007983bd93826ccc5a9dfc7ab3c9866 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Jobs; | |
| use Kudobuzz\Contracts\OrderInterface; | |
| class AddOrder | |
| { | |
| private $request; | |
| private $order; | |
| private $customer; | |
| public function __construct(Request $request, Order $order, OrderInterface $customer) | |
| { | |
| $this->request = $request; | |
| $this->customer = $customer; | |
| $this->order = $order; | |
| } | |
| public function createOrder() | |
| { | |
| $this->customer->create($this->order); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment