X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=blobdiff_plain;f=includes%2Fcache%2FLinkBatch.php;h=8a4d061e958c618bcf596312ea386c441cfd6097;hb=303b4057f977512bd87bde9c04d4beeeefe0012e;hp=e6d8630c53cbfd763d7cc9f58116f98d80899470;hpb=253d5a07ca762cd6e9030af1d297ecfbaacdb004;p=lhc%2Fweb%2Fwiklou.git 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 ); }