Merge "FauxRequest: don’t override getValues()"
[lhc/web/wiklou.git] / includes / resourceloader / ResourceLoaderFilePath.php
index 3cf09d8..c70081b 100644 (file)
@@ -1,8 +1,5 @@
 <?php
 /**
- * An object to represent a path to a JavaScript/CSS file, along with a remote
- * and local base path, for use with ResourceLoaderFileModule.
- *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
@@ -24,6 +21,9 @@
 /**
  * An object to represent a path to a JavaScript/CSS file, along with a remote
  * and local base path, for use with ResourceLoaderFileModule.
+ *
+ * @ingroup ResourceLoader
+ * @since 1.17
  */
 class ResourceLoaderFilePath {
 
@@ -34,7 +34,8 @@ class ResourceLoaderFilePath {
        protected $remoteBasePath;
 
        /**
-        * @var string Path to the file */
+        * @var string Path to the file
+        */
        protected $path;
 
        /**
@@ -62,6 +63,20 @@ class ResourceLoaderFilePath {
                return "{$this->remoteBasePath}/{$this->path}";
        }
 
+       /**
+        * @return string
+        */
+       public function getLocalBasePath() {
+               return $this->localBasePath;
+       }
+
+       /**
+        * @return string
+        */
+       public function getRemoteBasePath() {
+               return $this->remoteBasePath;
+       }
+
        /**
         * @return string
         */