Skip to content

Commit b3b93ef

Browse files
committed
add phpdoc blocks
1 parent 903803f commit b3b93ef

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

classes/ActionScheduler_Versions.php

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ class ActionScheduler_Versions {
1717
* @var array<string, callable>
1818
*/
1919
private $versions = array();
20-
private $sources = array();
20+
21+
/**
22+
* Registered sources.
23+
*
24+
* @var array<string, string>
25+
*/
26+
private $sources = array();
2127

2228
/**
2329
* Register version's callback.
@@ -45,6 +51,11 @@ public function get_versions() {
4551
return $this->versions;
4652
}
4753

54+
/**
55+
* Get registered sources.
56+
*
57+
* @return array<string, string>
58+
*/
4859
public function get_sources() {
4960
return $this->sources;
5061
}
@@ -97,6 +108,11 @@ public static function initialize_latest_version() {
97108
call_user_func( $self->latest_version_callback() );
98109
}
99110

111+
/**
112+
* Get directory of active source.
113+
*
114+
* @return string
115+
*/
100116
public function active_source() {
101117
return trailingslashit( dirname( __DIR__ ) );
102118
}

0 commit comments

Comments
 (0)