dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d52874
)
LinkBatch: Set visibility and document constructor
author
Kunal Mehta
<legoktm@member.fsf.org>
Fri, 9 Sep 2016 05:02:39 +0000
(22:02 -0700)
committer
Kunal Mehta
<legoktm@member.fsf.org>
Fri, 9 Sep 2016 05:02:39 +0000
(22:02 -0700)
Change-Id: I9d8edeb214b9d7507826004e470dcb5c1ef015f6
includes/cache/LinkBatch.php
patch
|
blob
|
history
diff --git
a/includes/cache/LinkBatch.php
b/includes/cache/LinkBatch.php
index
e6d8630
..
8a4d061
100644
(file)
--- a/
includes/cache/LinkBatch.php
+++ b/
includes/cache/LinkBatch.php
@@
-40,7
+40,11
@@
class LinkBatch {
*/
protected $caller;
- function __construct( $arr = [] ) {
+ /**
+ * LinkBatch constructor.
+ * @param LinkTarget[] $arr Initial items to be added to the batch
+ */
+ public function __construct( $arr = [] ) {
foreach ( $arr as $item ) {
$this->addObj( $item );
}