Add __toString method to LinkTarget interface
authoraddshore <addshorewiki@gmail.com>
Sat, 18 Nov 2017 17:34:10 +0000 (17:34 +0000)
committerAddshore <addshorewiki@gmail.com>
Sat, 18 Nov 2017 20:23:21 +0000 (20:23 +0000)
Change-Id: I4f12e3175a308f88e240db01cd4e91e78b283057

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();
+
 }