1 | <?php |
||
17 | abstract class AbstractCustomerCommand extends Command |
||
18 | { |
||
19 | /** |
||
20 | * @var CustomerFactory |
||
21 | */ |
||
22 | private $_customerFactory; |
||
23 | |||
24 | /** |
||
25 | * @var Client |
||
26 | */ |
||
27 | private $_eventClient; |
||
28 | |||
29 | /** |
||
30 | * AbstractCustomerCommand constructor. |
||
31 | * @param CustomerFactory $customerFactory |
||
32 | * @param Client $eventClient |
||
33 | */ |
||
34 | public function __construct(CustomerFactory $customerFactory, Client $eventClient) |
||
40 | |||
41 | /** |
||
42 | * Send the customer data to PredictionIO using the event client |
||
43 | * |
||
44 | * @param $collection |
||
45 | * @return int |
||
46 | */ |
||
47 | protected function _sendCustomerData($collection) |
||
66 | |||
67 | /** |
||
68 | * Get a collection of all customer ID's, regardless if they have been exported before. |
||
69 | * |
||
70 | * @return array |
||
71 | */ |
||
72 | protected function _getCustomerCollection() |
||
77 | } |
||
78 |