PluginProbe
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell / 3.13.3
WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell v3.13.3
3.13.3 3.13.2 3.13.1 3.13.0 3.12.13 3.12.12 3.12.11 3.12.10 3.12.9 3.12.8 3.12.7 3.12.6 3.12.5 3.12.4 3.12.3 3.12.1 3.12.2 3.12.0 3.11.1 3.11.0 3.10.9 3.10.8 3.10.7 3.10.6 2.8.16 All 261 releases
wpfunnels / vendor / linno / telemetry / src / Drivers / DriverInterface.php

DriverInterface.php in WPFunnels – Funnel Builder for WooCommerce with Checkout & One Click Upsell 3.13.3, at vendor/linno/telemetry/src/Drivers/DriverInterface.php

48 lines 940 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Driver Interface for analytics platforms
4 *
5 * @package LinnoSDK\Telemetry
6 * @since 1.0.0
7 */
8
9 namespace LinnoSDK\Telemetry\Drivers;
10
11 /**
12 * Interface DriverInterface
13 *
14 * Defines the contract for analytics platform drivers.
15 *
16 * @since 1.0.0
17 */
18 interface DriverInterface {
19 /**
20 * Send event data to the analytics platform
21 *
22 * @param string $event The event name.
23 * @param array $properties The event properties.
24 *
25 * @return bool True on success, false on failure.
26 * @since 1.0.0
27 */
28 public function send( string $event, array $properties ): bool;
29
30 /**
31 * Set the API key for authentication
32 *
33 * @param string $apiKey The API key.
34 *
35 * @return void
36 * @since 1.0.0
37 */
38 public function setApiKey( string $apiKey ): void;
39
40 /**
41 * Get the last error message
42 *
43 * @return string|null The last error message or null if no error.
44 * @since 1.0.0
45 */
46 public function getLastError(): ?string;
47 }
48