LinkBatch: Set visibility and document constructor
authorKunal Mehta <legoktm@member.fsf.org>
Fri, 9 Sep 2016 05:02:39 +0000 (22:02 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Fri, 9 Sep 2016 05:02:39 +0000 (22:02 -0700)
Change-Id: I9d8edeb214b9d7507826004e470dcb5c1ef015f6

includes/cache/LinkBatch.php

index e6d8630..8a4d061 100644 (file)
@@ -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 );
                }