X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flinker%2FLinkTarget.php;h=56407aec361f66105d7fd3e8c406c00072a0a427;hb=0b9edb467bbe687ff4e29088a4e5f008770a07a8;hp=dbd97a7a028bd06d58401ed9fb072b742b316eb7;hpb=5cbada9dea3f22e7bb33250197b156e8628b8e4a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/linker/LinkTarget.php b/includes/linker/LinkTarget.php index dbd97a7a02..56407aec36 100644 --- a/includes/linker/LinkTarget.php +++ b/includes/linker/LinkTarget.php @@ -16,7 +16,6 @@ * http://www.gnu.org/copyleft/gpl.html * * @file - * @license GPL 2+ * @author Addshore */ namespace MediaWiki\Linker; @@ -103,4 +102,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(); + }