1 | <?php |
||
10 | class WPRemote_Webhook_Service extends Webhook_Service { |
||
11 | |||
12 | /** |
||
13 | * Human readable name for this service |
||
14 | * @var string |
||
15 | */ |
||
16 | public $name = 'WP Remote Webhook'; |
||
17 | |||
18 | private $wpremote_webhook_url = 'http://wpremote.com/api/json/backupwordpress/webhook'; |
||
19 | |||
20 | /** |
||
21 | * Not in use |
||
22 | * |
||
23 | * @see field |
||
24 | * @return null |
||
25 | */ |
||
26 | public function form() {} |
||
27 | |||
28 | /** |
||
29 | * Not in use |
||
30 | * |
||
31 | * @return null |
||
32 | */ |
||
33 | public function field() {} |
||
34 | |||
35 | /** |
||
36 | * Not in use |
||
37 | * |
||
38 | * @return null |
||
39 | */ |
||
40 | public function display() {} |
||
41 | |||
42 | /** |
||
43 | * Not in use |
||
44 | * $return null |
||
45 | */ |
||
46 | public function update( &$new_data, $old_data ) {} |
||
47 | |||
48 | /** |
||
49 | * Used to determine if the service is in use or not |
||
50 | */ |
||
51 | public function is_service_active() { |
||
54 | |||
55 | /** |
||
56 | * @return string |
||
|
|||
57 | */ |
||
58 | protected function get_url() { |
||
61 | |||
62 | /** |
||
63 | * @return string |
||
64 | */ |
||
65 | protected function get_secret_key() { |
||
68 | } |
||
69 | |||
72 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.