Add __toString method to LinkTarget interface
[lhc/web/wiklou.git] / includes / linker / LinkTarget.php
index dbd97a7..980a8bf 100644 (file)
@@ -103,4 +103,15 @@ interface LinkTarget {
         * @return string
         */
        public function getInterwiki();
+
+       /**
+        * Returns an informative human readable representation of the link target,
+        * for use in logging and debugging. There is no requirement for the return
+        * value to have any relationship with the input of TitleParser.
+        * @since 1.31
+        *
+        * @return string
+        */
+       public function __toString();
+
 }