Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/MediawikiApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@ public function __construct( $apiUrl, ClientInterface $client = null, MediawikiS
$this->logger = new NullLogger();
}

/**
* Get the API URL (the URL to which API requests are sent, usually ending in api.php).
* This is useful if you've created this object via MediawikiApi::newFromPage().
* @return string The API URL.
*/
public function getApiUrl()
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bracket should be on the previous line

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! :) Which reminds me, we should add phpcs to this package too...

return $this->apiUrl;
}

/**
* @return ClientInterface
*/
Expand Down