X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Ftitle%2FPageLinkRenderer.php;h=1c5f0f7d4f1b75cf467d480aeece7d7dd14d315e;hb=e3bd13db0c285f312e31bb1b7271af4628cca80c;hp=fb1096e0fa194fb9c1c422f15be45d454fdb6a14;hpb=91b07c5e0950572fb41f7d8f466fb6b3bbe98be5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/title/PageLinkRenderer.php b/includes/title/PageLinkRenderer.php index fb1096e0fa..1c5f0f7d4f 100644 --- a/includes/title/PageLinkRenderer.php +++ b/includes/title/PageLinkRenderer.php @@ -29,6 +29,7 @@ * URLs, and how links are encoded in a given output format. * * @see https://www.mediawiki.org/wiki/Requests_for_comment/TitleValue + * @since 1.23 */ interface PageLinkRenderer { /** @@ -36,32 +37,32 @@ interface PageLinkRenderer { * * @todo expand this to cover the functionality of Linker::linkUrl * - * @param TitleValue $page The link's target + * @param LinkTarget $page The link's target * @param array $params Any additional URL parameters. * * @return string */ - public function getPageUrl( TitleValue $page, $params = array() ); + public function getPageUrl( LinkTarget $page, $params = [] ); /** * Returns an HTML link to the given page, using the given surface text. * * @todo expand this to cover the functionality of Linker::link * - * @param TitleValue $page The link's target + * @param LinkTarget $page The link's target * @param string $text The link's surface text (will be derived from $page if not given). * * @return string */ - public function renderHtmlLink( TitleValue $page, $text = null ); + public function renderHtmlLink( LinkTarget $page, $text = null ); /** * Returns a wikitext link to the given page, using the given surface text. * - * @param TitleValue $page The link's target + * @param LinkTarget $page The link's target * @param string $text The link's surface text (will be derived from $page if not given). * * @return string */ - public function renderWikitextLink( TitleValue $page, $text = null ); + public function renderWikitextLink( LinkTarget $page, $text = null ); }