@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | |
49 | 49 | /** |
50 | 50 | * record_event |
51 | - * @param mixed $event Event object to send to Tracks. An array will be cast to object. Required. |
|
51 | + * @param Jetpack_Tracks_Event $event Event object to send to Tracks. An array will be cast to object. Required. |
|
52 | 52 | * Properties are included directly in the pixel query string after light validation. |
53 | 53 | * @return mixed True on success, WP_Error on failure |
54 | 54 | */ |
@@ -71,6 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | /** |
73 | 73 | * Synchronously request the pixel |
74 | + * @param string $pixel |
|
74 | 75 | */ |
75 | 76 | static function record_pixel( $pixel ) { |
76 | 77 | // Add the Request Timestamp and URL terminator just before the HTTP request. |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * @param string $event_name The name of the event |
38 | 38 | * @param array $properties Custom properties to send with the event |
39 | 39 | * @param int $event_timestamp_millis The time in millis since 1970-01-01 00:00:00 when the event occurred |
40 | - * @return \Jetpack_Tracks_Event|\WP_Error |
|
40 | + * @return Jetpack_Tracks_Event |
|
41 | 41 | */ |
42 | 42 | function jetpack_tracks_build_event_obj( $user, $event_name, $properties = array(), $event_timestamp_millis = false ) { |
43 | 43 | |
@@ -107,7 +107,6 @@ discard block |
||
107 | 107 | /** |
108 | 108 | * Record an event in Tracks - this is the preferred way to record events from PHP. |
109 | 109 | * |
110 | - * @param mixed $identity username, user_id, or WP_user object |
|
111 | 110 | * @param string $event_name The name of the event |
112 | 111 | * @param array $properties Custom properties to send with the event |
113 | 112 | * @param int $event_timestamp_millis The time in millis since 1970-01-01 00:00:00 when the event occurred |