From: addshore Date: Sat, 18 Nov 2017 17:34:10 +0000 (+0000) Subject: Add __toString method to LinkTarget interface X-Git-Tag: 1.31.0-rc.0~1463^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=b559728049fbe1bc0a9ddcee6449761c0dbfd394;p=lhc%2Fweb%2Fwiklou.git Add __toString method to LinkTarget interface Change-Id: I4f12e3175a308f88e240db01cd4e91e78b283057 --- diff --git a/includes/linker/LinkTarget.php b/includes/linker/LinkTarget.php index dbd97a7a02..980a8bfcb8 100644 --- a/includes/linker/LinkTarget.php +++ b/includes/linker/LinkTarget.php @@ -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(); + }