File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,13 @@ class ActionScheduler_Versions {
17
17
* @var array<string, callable>
18
18
*/
19
19
private $ versions = array ();
20
- private $ sources = array ();
20
+
21
+ /**
22
+ * Registered sources.
23
+ *
24
+ * @var array<string, string>
25
+ */
26
+ private $ sources = array ();
21
27
22
28
/**
23
29
* Register version's callback.
@@ -45,6 +51,11 @@ public function get_versions() {
45
51
return $ this ->versions ;
46
52
}
47
53
54
+ /**
55
+ * Get registered sources.
56
+ *
57
+ * @return array<string, string>
58
+ */
48
59
public function get_sources () {
49
60
return $ this ->sources ;
50
61
}
@@ -97,6 +108,11 @@ public static function initialize_latest_version() {
97
108
call_user_func ( $ self ->latest_version_callback () );
98
109
}
99
110
111
+ /**
112
+ * Get directory of active source.
113
+ *
114
+ * @return string
115
+ */
100
116
public function active_source () {
101
117
return trailingslashit ( dirname ( __DIR__ ) );
102
118
}
You can’t perform that action at this time.
0 commit comments