1 | <?php |
||
9 | class EntersaleremotelyAPIConnector extends Object |
||
|
|||
10 | { |
||
11 | |||
12 | /** |
||
13 | * REQUIRED! |
||
14 | * @var String |
||
15 | */ |
||
16 | private static $api_key = ""; |
||
17 | |||
18 | |||
19 | /** |
||
20 | * REQUIRED! |
||
21 | * @var String |
||
22 | */ |
||
23 | private static $merchant_identifier = ""; |
||
24 | |||
25 | |||
26 | /** |
||
27 | * sends the order data from the website to feefo using the Entersaleremotely API |
||
28 | * |
||
29 | * @param Order $order - the order to be assessed |
||
30 | * @param int $delay - number of days to wait before feefo will send the feedback email |
||
31 | * |
||
32 | * @return array $messages - an array of message regarding the success of each curl request - one for each Order Item |
||
33 | */ |
||
34 | public function sendOrderDataToFeefo($order, $delay = 0) |
||
91 | |||
92 | /** |
||
93 | * performs the curl request |
||
94 | * |
||
95 | * @param array $params - the data to send to FEEFO |
||
96 | * |
||
97 | * @return string $reply |
||
98 | */ |
||
99 | public function sendCurlRequest($params) |
||
118 | } |
||
119 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.