Declare dynamic properties
[lhc/web/wiklou.git] / includes / export / DumpMultiWriter.php
index 2f5a782..2f5b3dc 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * Base class for output stream; prints to stdout or buffer or wherever.
  *
- * Copyright © 2003, 2005, 2006 Brion Vibber <brion@pobox.com>
+ * Copyright Â© 2003, 2005, 2006 Brion Vibber <brion@pobox.com>
  * https://www.mediawiki.org/
  *
  * This program is free software; you can redistribute it and/or modify
  * @ingroup Dump
  */
 class DumpMultiWriter {
+       /** @var array */
+       private $sinks;
+       /** @var int */
+       private $count;
 
        /**
         * @param array $sinks
@@ -104,7 +108,7 @@ class DumpMultiWriter {
         * @return array
         */
        function getFilenames() {
-               $filenames = array();
+               $filenames = [];
                for ( $i = 0; $i < $this->count; $i++ ) {
                        $filenames[] = $this->sinks[$i]->getFilenames();
                }