Skip to content

Instantly share code, notes, and snippets.

@NtimYeboah
Last active November 17, 2017 14:35
Show Gist options
  • Select an option

  • Save NtimYeboah/b007983bd93826ccc5a9dfc7ab3c9866 to your computer and use it in GitHub Desktop.

Select an option

Save NtimYeboah/b007983bd93826ccc5a9dfc7ab3c9866 to your computer and use it in GitHub Desktop.
<?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