From: Kunal Mehta Date: Fri, 9 Sep 2016 05:02:39 +0000 (-0700) Subject: LinkBatch: Set visibility and document constructor X-Git-Tag: 1.31.0-rc.0~5685 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=commitdiff_plain;h=303b4057f977512bd87bde9c04d4beeeefe0012e;p=lhc%2Fweb%2Fwiklou.git LinkBatch: Set visibility and document constructor Change-Id: I9d8edeb214b9d7507826004e470dcb5c1ef015f6 --- 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 ); }