@@ -52,7 +52,7 @@ |
||
52 | 52 | /** |
53 | 53 | * Record an event. |
54 | 54 | * |
55 | - * @param mixed $event Event object to send to Tracks. An array will be cast to object. Required. |
|
55 | + * @param Jetpack_Tracks_Event $event Event object to send to Tracks. An array will be cast to object. Required. |
|
56 | 56 | * Properties are included directly in the pixel query string after light validation. |
57 | 57 | * @return mixed True on success, WP_Error on failure |
58 | 58 | */ |
@@ -103,7 +103,7 @@ |
||
103 | 103 | * |
104 | 104 | * @param string $content The current message. |
105 | 105 | * |
106 | - * @return array The new message. |
|
106 | + * @return string The new message. |
|
107 | 107 | */ |
108 | 108 | public static function jitm_woocommerce_services_msg( $content ) { |
109 | 109 | if ( ! function_exists( 'wc_get_base_location' ) ) { |
@@ -13,6 +13,9 @@ |
||
13 | 13 | $this->rules = []; |
14 | 14 | } |
15 | 15 | |
16 | + /** |
|
17 | + * @param string $name |
|
18 | + */ |
|
16 | 19 | static function get( $name ) { |
17 | 20 | return new Capability( $name, true ); |
18 | 21 | } |
@@ -15,11 +15,17 @@ |
||
15 | 15 | return new Builder(); |
16 | 16 | } |
17 | 17 | |
18 | + /** |
|
19 | + * @param string $wp_role |
|
20 | + */ |
|
18 | 21 | function require_wp_role( $wp_role ) { |
19 | 22 | $this->capabilities->add_rule( new WPRoleRule( $wp_role ) ); |
20 | 23 | return $this; |
21 | 24 | } |
22 | 25 | |
26 | + /** |
|
27 | + * @param string $wp_capability |
|
28 | + */ |
|
23 | 29 | function require_wp_capability( $wp_capability ) { |
24 | 30 | $this->capabilities->add_rule( new WPCapabilityRule( $wp_capability ) ); |
25 | 31 | return $this; |
@@ -6,6 +6,9 @@ |
||
6 | 6 | public $name; |
7 | 7 | public $available; |
8 | 8 | |
9 | + /** |
|
10 | + * @param boolean $available |
|
11 | + */ |
|
9 | 12 | function __construct( $name, $available ) { |
10 | 13 | $this->name = $name; |
11 | 14 | $this->available = $available; |