Rename functions to reflect the API (#226)

This will fix #202
This commit is contained in:
Tobias Nyholm 2016-11-23 22:21:15 +01:00 committed by GitHub
parent 9bd6732efd
commit a3e999e875

View File

@ -256,7 +256,7 @@ class Mailgun
/**
* @return Api\Stats
*/
public function getStatsApi()
public function stats()
{
return new Api\Stats($this->httpClient, $this->requestBuilder, $this->deserializer);
}
@ -264,7 +264,7 @@ class Mailgun
/**
* @return Api\Domain
*/
public function getDomainApi()
public function domains()
{
return new Api\Domain($this->httpClient, $this->requestBuilder, $this->deserializer);
}