| 1 | <?php namespace Algorit\Synchronizer; |
||
| 6 | class Sender { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * Send data to ERP |
||
| 10 | * |
||
| 11 | * @return void |
||
| 12 | */ |
||
| 13 | public function toErp(RequestInterface $request, $entity, Array $response) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Insert data into Database |
||
| 25 | * |
||
| 26 | * @return void |
||
| 27 | */ |
||
| 28 | public function toDatabase(RequestInterface $request, $entity, Array $response) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Send data to Device (Api) |
||
| 42 | * |
||
| 43 | * @return void |
||
| 44 | */ |
||
| 45 | public function toApi(Array $data, $parse = false) |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Parse response array |
||
| 57 | * |
||
| 58 | * @param array $response |
||
| 59 | * @return array |
||
| 60 | */ |
||
| 61 | private function parse(Array $response) |
||
| 72 | |||
| 73 | } |