1 | <?php |
||
14 | class PilotApiClient |
||
15 | { |
||
16 | /** |
||
17 | * Pilot API URI |
||
18 | */ |
||
19 | const BASE_URI = 'http://www.pilotsolution.com.ar/api/webhooks/welcome.php'; |
||
20 | |||
21 | private $appKey; |
||
22 | private $debug; |
||
23 | private $notification_email; |
||
|
|||
24 | private $guzzleClient; |
||
25 | |||
26 | /** |
||
27 | * PilotApi constructor. |
||
28 | * @param array $config |
||
29 | */ |
||
30 | public function __construct(array $config = []) |
||
44 | |||
45 | /** |
||
46 | * Store lead |
||
47 | * |
||
48 | * @param array $lead_data Lead data array. |
||
49 | * See documentation at http://www.pilotsolution.com.ar/home/api.php (Array keys without 'pilot_' prefix) |
||
50 | * Example: |
||
51 | * $lead_data = ['firstname' => 'John', 'lastname' = 'Doe', 'phone' => '+543512345678', 'email' => '[email protected]']; |
||
52 | * |
||
53 | * @param int $business_type_id Código numérico del tipo negocio del dato (1: 0km, 2: Usados, 3: Plan de Ahorro) |
||
54 | * @param int $contact_type_id Código numérico del tipo de contacto del dato (1: Electrónico, 2: Telefónico , 3: Entrevista) |
||
55 | * @return string Pilot API response |
||
56 | */ |
||
57 | public function storeLead(LeadData $lead_data, $notification_email = '') |
||
93 | |||
94 | /** |
||
95 | * @return GuzzleClient |
||
96 | */ |
||
97 | public function getGuzzleClient() |
||
101 | } |
||
102 |
This check marks private properties in classes that are never used. Those properties can be removed.