Add docs for all model-returning methods on the Reader class

This commit is contained in:
Dave Rolsky 2014-10-27 16:06:26 -05:00
parent 00a520f3c5
commit 18686e11ac

View File

@ -91,6 +91,18 @@ class Reader implements ProviderInterface
return $this->modelFor('Country', 'Country', $ipAddress); return $this->modelFor('Country', 'Country', $ipAddress);
} }
/**
* This method returns a GeoIP2 Connection Type model.
*
* @param string $ipAddress IPv4 or IPv6 address as a string.
*
* @return \GeoIp2\Model\ConnectionType
*
* @throws \GeoIp2\Exception\AddressNotFoundException if the address is
* not in the database.
* @throws \MaxMind\Db\Reader\InvalidDatabaseException if the database
* is corrupt or invalid
*/
public function connectionType($ipAddress) public function connectionType($ipAddress)
{ {
return $this->flatModelFor( return $this->flatModelFor(
@ -100,6 +112,18 @@ class Reader implements ProviderInterface
); );
} }
/**
* This method returns a GeoIP2 Domain model.
*
* @param string $ipAddress IPv4 or IPv6 address as a string.
*
* @return \GeoIp2\Model\Domain
*
* @throws \GeoIp2\Exception\AddressNotFoundException if the address is
* not in the database.
* @throws \MaxMind\Db\Reader\InvalidDatabaseException if the database
* is corrupt or invalid
*/
public function domain($ipAddress) public function domain($ipAddress)
{ {
return $this->flatModelFor( return $this->flatModelFor(
@ -109,6 +133,18 @@ class Reader implements ProviderInterface
); );
} }
/**
* This method returns a GeoIP2 ISP model.
*
* @param string $ipAddress IPv4 or IPv6 address as a string.
*
* @return \GeoIp2\Model\Isp
*
* @throws \GeoIp2\Exception\AddressNotFoundException if the address is
* not in the database.
* @throws \MaxMind\Db\Reader\InvalidDatabaseException if the database
* is corrupt or invalid
*/
public function isp($ipAddress) public function isp($ipAddress)
{ {
return $this->flatModelFor( return $this->flatModelFor(