@@ -14,6 +14,9 @@ discard block |
||
14 | 14 | private $product_name; |
15 | 15 | private $connection; |
16 | 16 | |
17 | + /** |
|
18 | + * @param Connection\Manager $connection |
|
19 | + */ |
|
17 | 20 | function __construct( $product_name = 'jetpack', $connection = null ) { |
18 | 21 | $this->product_name = $product_name; |
19 | 22 | $this->connection = $connection; |
@@ -60,7 +63,6 @@ discard block |
||
60 | 63 | /** |
61 | 64 | * Record an event in Tracks - this is the preferred way to record events from PHP. |
62 | 65 | * |
63 | - * @param mixed $identity username, user_id, or WP_user object |
|
64 | 66 | * @param string $event_name The name of the event |
65 | 67 | * @param array $properties Custom properties to send with the event |
66 | 68 | * @param int $event_timestamp_millis The time in millis since 1970-01-01 00:00:00 when the event occurred |