From 303b4057f977512bd87bde9c04d4beeeefe0012e Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Thu, 8 Sep 2016 22:02:39 -0700 Subject: [PATCH] LinkBatch: Set visibility and document constructor Change-Id: I9d8edeb214b9d7507826004e470dcb5c1ef015f6 --- includes/cache/LinkBatch.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/cache/LinkBatch.php b/includes/cache/LinkBatch.php index e6d8630c53..8a4d061e95 100644 --- 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 ); } -- 2.20.1