1 | <?php |
||
10 | class CustomersRepository |
||
11 | { |
||
12 | /** |
||
13 | * Customer Model instance. |
||
14 | * |
||
15 | * @var mixed |
||
16 | **/ |
||
17 | public $customer; |
||
18 | |||
19 | /** |
||
20 | * Create a new instance of the CustomerRepository::class. |
||
21 | **/ |
||
22 | public function __construct(Customer $customer) |
||
26 | |||
27 | //end __construct() |
||
28 | |||
29 | /** |
||
30 | * Find a customer by a field. |
||
31 | * |
||
32 | * @return mixid $this |
||
33 | **/ |
||
34 | public function findCustomer($key, $value) |
||
38 | |||
39 | //end findCustomer() |
||
40 | |||
41 | /** |
||
42 | * Create Customer with the received response. |
||
43 | * |
||
44 | * @return Customer |
||
45 | * |
||
46 | * @param array $data |
||
47 | **/ |
||
48 | public function createCustomer($data) |
||
53 | |||
54 | //end createCustomer() |
||
55 | }//end class |
||
56 |