@@ -33,6 +33,9 @@ |
||
33 | 33 | return self::set( $user_id, 1 ); |
34 | 34 | } |
35 | 35 | |
36 | + /** |
|
37 | + * @param integer $value |
|
38 | + */ |
|
36 | 39 | static private function set( $user_id, $value ) { |
37 | 40 | return update_user_meta( $user_id, self::$KEY, $value ); |
38 | 41 | } |
@@ -8,6 +8,9 @@ |
||
8 | 8 | private $state; // The state of the object, eg `is_just_published` |
9 | 9 | private $trigger; // The action that triggers the sync operation, eg `save_post` |
10 | 10 | |
11 | + /** |
|
12 | + * @param string $trigger |
|
13 | + */ |
|
11 | 14 | function __construct( $trigger, $object = null ) { |
12 | 15 | $this->trigger = $trigger; |
13 | 16 | if ( $object ) { |