Set visibility on class properties of UnregisteredLocalFile
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Sat, 23 Nov 2013 21:24:34 +0000 (22:24 +0100)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Sun, 24 Nov 2013 09:04:40 +0000 (10:04 +0100)
Change-Id: If1be1621ab161aa9d8704cba51e637e553195742

includes/filerepo/file/UnregisteredLocalFile.php

index e7fa46e..6d0786d 100644 (file)
  *
  * Read-only.
  *
- * TODO: Currently it doesn't really work in the repository role, there are
+ * @todo Currently it doesn't really work in the repository role, there are
  * lots of functions missing. It is used by the WebStore extension in the
  * standalone role.
  *
  * @ingroup FileAbstraction
  */
 class UnregisteredLocalFile extends File {
-       var $title, $path, $mime, $dims, $metadata;
+       /** @var Title  */
+       protected $title;
 
-       /**
-        * @var MediaHandler
-        */
-       var $handler;
+       /** @var string */
+       protected $path;
+
+       /** @var bool|string */
+       protected $mime;
+
+       /** @var array Dimension data */
+       protected $dims;
+
+       /** @var bool|string Handler-specific metadata which will be saved in the img_metadata field */
+       protected $metadata;
+
+       /** @var MediaHandler */
+       public $handler;
 
        /**
         * @param string $path Storage path